Last Updated: February 25, 2016
·
4.419K
· kjellski

Ubuntu 14.04 LTS Docker installation: no such file or directory

I came across an error while installing docker and running the default example on my new shiny ubuntu machine. Docker told me:

[~]$ sudo docker.io run -i -t ubuntu /bin/bash
2014/05/28 22:16:32 no such file or directory

And after switching to the latest, this:

[~]$ sudo docker run -i -t ubuntu /bin/bash
2014/05/28 22:22:41 set apparmor profile docker-default: no such file or directory

After a litte searching, and fiddling arround, I noticed that all of this had nothing to do with the real problem, ufw was getting in my way:

[~]$ sudo nano /etc/default/ufw

Change

DEFAULT_FORWARD_POLICY="DROP"

to this:

DEFAULT_FORWARD_POLICY="ACCEPT"

And automagically it worked. Documentation here , just didn't thought of this being the reason. Another good call to RTFM!

As always, hope it helps!
@kjellski

1 Response
Add your response

Unfortunately, this does not help me on Linux Mint 17.
What helps me with this problem is installing apparomor-utils.

$ sudo apt-get install apparmor-utils

This advice is from here:
https://stackoverflow.com/questions/23205631/weird-error-while-running-docker-command-no-such-file-or-directory/24347760#24347760?newreg=1a3add0765c74fd7bafad413abd98210

Anyway, thank you for pro tip!

over 1 year ago ·