Question

Start Docker error message

  • Posted on June 14, 2014
  • iameteorAsked by iameteor

I was trying to run “docker -d” command to start docker service and install dokku by myself, but I got an error message. Any idea? Thanks!

Environment: Ubuntu+Nginx+RoR+Unicorn

Error Message: <pre> [2758c589] +job serveapi(unix:///var/run/docker.sock) [2758c589] +job initserver() [2758c589.initserver()] Creating server [2758c589] +job init_networkdriver() 2014/06/14 02:19:41 Listening for HTTP on unix (/var/run/docker.sock) [2758c589] -job init_networkdriver() = OK (0) 2014/06/14 02:19:41 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 () [2758c589] -job initserver() = ERR (1) 2014/06/14 02:19:41 Error loading docker apparmor profile: exec: “/sbin/apparmor_parser”: stat /sbin/apparmor_parser: no such file or directory () </pre>

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

kitto@kitto-OptiPlex-3020 ~ $ sudo docker -d INFO[0000] +job serveapi(unix:///var/run/docker.sock)

INFO[0000] Listening for HTTP on unix (/var/run/docker.sock) INFO[0000] +job initnetworkdriver()

INFO[0000] -job initnetworkdriver() = OK (0)

INFO[0000] WARNING: Your kernel does not support cgroup swap limit.

Solution:

sudo apt-get install apparmor

​ kitto@kitto-OptiPlex-3020 ~ $sudo service docker start

docker start/running, process 20306 kitto@kitto-OptiPlex-3020 ~ $ sudo service docker restart docker stop/waiting docker start/running, process 20366 kitto@kitto-OptiPlex-3020 ~ $ ps aux | grep docker

root 20366 0.5 0.1 329880 8348 ? Ssl 13:48 0:00 /usr/bin/docker -d kitto 20426 0.0 0.0 13424 916 pts/9 S+ 13:48 0:00 grep --colour=auto docker

Problem is solved!

This error is because the file <code>/sbin/apparmor_parser</code> is missing: <pre> 2014/06/14 02:19:41 Error loading docker apparmor profile: exec: “/sbin/apparmor_parser”: stat /sbin/apparmor_parser: no such file or directory () </pre> That command is provided by the apparmor package. Please ensure it is installed: <pre> sudo apt-get install apparmor </pre>

This comment has been deleted