I’ve recently been experimenting with Docker containers, but found there’s an error with installing it on Linux Mint:
2015/07/30 14:00:53 WARNING: Your kernel does not support cgroup swap limit. Error loading docker apparmor profile: exec: "/sbin/apparmor_parser": stat /sbin/apparmor_parser: no such file or directory ()
It’s quite easy to solve, you just have to install app-armour:
sudo apt-get install apparmor
Then start the docker demon from the terminal to make sure it’s loading okay:
sudo docker -d
You should see something similar to the following:
2015/07/30 14:07:14 docker daemon: 1.0.1 990021a; execdriver: native; graphdriver: [67068605] +job serveapi(unix:///var/run/docker.sock) [67068605] +job initserver() [67068605.initserver()] Creating server 2015/07/30 14:07:14 Listening for HTTP on unix (/var/run/docker.sock) [67068605] +job init_networkdriver() [67068605] -job init_networkdriver() = OK (0) 2015/07/30 14:07:14 WARNING: Your kernel does not support cgroup swap limit. 2015/07/30 14:07:14 Local (127.0.0.1) DNS resolver found in resolv.conf and containers can't use it. Using default external servers : [8.8.8.8 8.8.4.4] Loading containers: : done. [67068605.initserver()] Creating pidfile [67068605.initserver()] Setting up signal traps [67068605] -job initserver() = OK (0) [67068605] +job acceptconnections() [67068605] -job acceptconnections() = OK (0)
Once it loads this far, you can use ctrl + c to exit and start the service. If you have any further errors you’ll need to investigate further. Then start the service using:
sudo service docker.io start