New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add documentation: Ubuntu installation #12002
Comments
Which ubuntu version are you using? |
Towards the end of the output of
? |
I am also having the same issues with vivid (ubuntu-15.04) builds. docker service/daemon doesn't start automatically. You have to start it manually to get it working. |
I installed docker on a clean version ubuntu 15.04 using |
Same here for me. Docker service/daemon doesn't start automatically. I have to start it manually to get it working. I'm also on a clean Ubuntu 15.04 (not using the beta version)
|
Probably need to try |
Oh gosh my fault! you're right @thaJeztah :) |
You're welcome! It is confusing, so nothing to be ashamed about :) |
I seem to have the same problem with Ubuntu 15.04 (fresh installation). Probably it has something to do with the change from upstart to systemd as init system. I assume some startup scripts have to get adjusted to fix it. Some info about my system:
After
Note: |
👍 I'm seeing the same results as @asmaps on my fresh 15.04 install (also installed docker with the script) |
+1. I need to sudo service docker restart after every reboot |
I'm having the same issue on Ubuntu 15.04. After "sudo service docker restart" it starts working. |
Docker service won't start automatically for me as well:
|
@tianon @jfrazelle are there still known issues with the install script? Given it's a mish-mash of versions reported above, I'm not sure all reporters are having the same issue. Anything you think could be worthy to check in order to debug? |
1 similar comment
@tianon @jfrazelle are there still known issues with the install script? Given it's a mish-mash of versions reported above, I'm not sure all reporters are having the same issue. Anything you think could be worthy to check in order to debug? |
Seems to me it is the same problem. People need to run systemctl enable On Saturday, May 9, 2015, Sebastiaan van Stijn notifications@github.com
|
for me (on Ubuntu 14.04) looking into /var/log/upstart/docker.io.log hint me in the direction apparmor was missing so i did apt-get install apparmor followed by sudo service docker restart and it worked |
@innovia the issue with Ubuntu 15.04 is another one. Apparmor is installed. Systemd is used instead of Upstart. |
I am not familiar with the docker internals but it is clear to me that either docker itself sort one of its dependencies has a dependency on What I'm trying to say is, maybe instead of updating the documentation, the dependency tree should be fixed somehow. |
Talking only about 15.04, the Ubuntu install instructions do not describe how to install on 15.04 yet, and just doing
*) There may be a better way to do this, I'm new at systemd, but this is what worked for me. |
There is a fix for this problem for Ubuntu 15.04: |
Wow, glad to have found this issue, but
and |
Doh, so I unmasked both docker.service and docker.socket, but still trouble:
|
sudo apt-get install apparmor and restarting the docker service worked for me |
@jfrazelle ^^ I think you were working on that part as well (apparmor)? |
Ubuntu 15.04 comes with Docker 1.5 and worked out of the box. But after |
I had this very issue -though remembered to solve it this way back from a while ago- I'd too recommend someone expert on Ubuntu and debian installs to fix up (at least warning users) to install Apparmor as a dependency, please. I am not keen on understanding high level bash scripts that's why I cannot create a PR myself, sorry. |
|
Personally, I had to manually edit the |
I also had to edit |
This is not a |
I also ran into this issue on Ubuntu mate based on 15.04 although I actually prefer to not have docker run on startup so I just turn it on and off with |
all so simple, first of all try to write ¨sudo docker run hello-world¨, daemon answer only to root user >< i spend so many time read about this problem, try so many different methods to fix this, and after all I enter into var/run/docker/docker.socket and see ther daemon user is root, that´s why I try to write sudo before docker word and it´s work >< 14.04 Ubuntu |
Just confirmed that |
@michielbdejong : Related discussion here : #14217 |
Also, changes are coming to the installation process; #13680 |
@thaJeztah : I did not follow that PR, but does it address the issue of docker not starting automatically on Ubuntu 15.04 and above? |
@ankushagarwal not fully sure; iiuc, updating the install scripts is part of that plan, and it's possible that automatic starting is part of that rewrite. However, I think I also read that making Docker start automatically on boot was intended to be a change/decision made by the user. Erm, so in short: I don't know (yet) 😊 |
Running 15.04, the Restarted to make sure it worked and there's no problems. @thaJeztah the docs should be updated to reflect the choice, if it's intended as a choice. It would also probably help to add to the docs the official instructions for making the docker command run with out |
@srcspider agreed! |
Fixes moby#12002 Signed-off-by: Ankush Agarwal <ankushagarwal11@gmail.com>
The service isn't started by default on a clean Ubuntu 14.04 install Fixes moby#12002
Fixes moby#12002 Signed-off-by: Ankush Agarwal <ankushagarwal11@gmail.com>
Fixes moby#12002 Signed-off-by: Ankush Agarwal <ankushagarwal11@gmail.com>
on redhat
|
I was following this page: https://docs.docker.com/installation/ubuntulinux/
After I installed docker but and ran the command: $ sudo docker run hello-world
It returned:
FATA[0000] Get http:///var/run/docker.sock/v1.17/version: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?
can you please add a step in the instructions to run: service docker restart
This fixed the issue for me.
The text was updated successfully, but these errors were encountered: