After upgrading from version 0.6.7 to 0.7.0, the docker daemon won't start successfully and /etc/init.d/docker status returns "crashed". Old, working setting: app-emulation/docker-0.6.7 with sys-fs/aufs3-3_p20131111-r1 and kernel-patch use flag New non-working settings: app-emulation/docker-0.7.0, either with device-mapper, aufs, or both use flags enabled. In /var/log/docker.log: [/var/lib/docker|2a0c6746] +job initapi() [/var/lib/docker|2a0c6746.initapi()] Creating server [/var/lib/docker|2a0c6746] -job initapi() = ERR (EOF) 2013/11/28 08:29:18 initapi: EOF In /var/log/messages: Nov 28 07:48:48 pelvoux /etc/init.d/docker[11869]: status: crashed Nov 28 07:48:52 pelvoux /etc/init.d/docker[11956]: You have to create an init script for each container: Nov 28 07:48:52 pelvoux /etc/init.d/docker[11957]: ln -s lxc /etc/init.d/lxc.container Nov 28 07:49:36 pelvoux /etc/init.d/docker[12150]: status: crashed I do not understand what "You have to create an init script for each container:..." implies
Can you attach a copy of your current /etc/init.d/docker ? I'm a little perplexed by the lines you're seeing in /var/log/messages myself. We don't do anything with the "lxc" init script, since Docker handles all the LXC for us.
Also, can you try running "sudo docker -d -D" in a terminal, and paste the output here?
I am very sorry that I reverted back to 0.6.7 to go on with my work, and after doing so, my existing container just could not work. It cost me hours of hours, so I am reluctant to upgrade again now. On 0.6.7, I get: $ docker -d -D [/var/lib/docker|aeb22dca] +job initapi() [/var/lib/docker|aeb22dca.initapi()] Creating server [/var/lib/docker|aeb22dca] -job initapi() = ERR (mkdir /var/lib/docker/containers: permission denied) 2013/12/01 09:27:50 initapi: mkdir /var/lib/docker/containers: permission denied However, everything is working fine. I have my user in the docker group, so never call it with sudo/as root. And also: # ls /var/lib/docker/ -l total 132 drwxr-xr-x 5 root root 4096 Nov 28 07:24 aufs drwx------ 185 root root 28672 Nov 28 18:04 containers drwx------ 113 root root 20480 Nov 28 15:41 graph -rw-r--r-- 1 root root 60416 Nov 28 18:04 linkgraph.db lrwxrwxrwx 1 root root 19 Dec 1 09:23 lxc-start-unconfined -> /usr/sbin/lxc-start -rw------- 1 root root 669 Nov 28 15:41 repositories -rw------- 1 root root 974 Nov 5 18:53 repositories-aufs drwx------ 2 root root 4096 Nov 2 19:13 volumes
Well, until we can get some more information, there's not much we can do here, so marking closed for now, thanks.
OK, so I made another attempt, making sure I have no container running during update. Also in the meantime I have switched to systemd, but I guess that does not matter. Anyway, I am still seeing the same issue, and here is the output of docker -d -D (as root), as requested: # docker -d -D [/var/lib/docker|b37b9940] +job initapi() [/var/lib/docker|b37b9940.initapi()] Creating server [debug] runtime.go:638 Using graph driver aufs [/var/lib/docker|b37b9940] -job initapi() = ERR (EOF) 2013/12/06 10:02:51 initapi: EOF Before that, I run: # systemctl start docker.service # systemctl status docker.service docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib64/systemd/system/docker.service; disabled) Active: failed (Result: exit-code) since Fri 2013-12-06 10:00:23 CST; 33s ago Docs: http://docs.docker.io Process: 9017 ExecStart=/usr/bin/docker -d (code=exited, status=1/FAILURE) Process: 9015 ExecStartPre=/bin/mount --make-rprivate / (code=exited, status=0/SUCCESS) Main PID: 9017 (code=exited, status=1/FAILURE) Dec 06 10:00:23 pelvoux systemd[1]: Started Docker Application Container Engine. Dec 06 10:00:23 pelvoux docker[9017]: [/var/lib/docker|d13b7702] +job initapi() Dec 06 10:00:23 pelvoux docker[9017]: [/var/lib/docker|d13b7702.initapi()] Creating server Dec 06 10:00:23 pelvoux docker[9017]: [/var/lib/docker|d13b7702] -job initapi() = ERR (EOF) Dec 06 10:00:23 pelvoux docker[9017]: 2013/12/06 10:00:23 initapi: EOF Dec 06 10:00:23 pelvoux systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE Dec 06 10:00:23 pelvoux systemd[1]: Unit docker.service entered failed state. pelvoux sylvain # docker -d -D [/var/lib/docker|b37b9940] +job initapi() [/var/lib/docker|b37b9940.initapi()] Creating server [debug] runtime.go:638 Using graph driver aufs [/var/lib/docker|b37b9940] -job initapi() = ERR (EOF) 2013/12/06 10:02:51 initapi: EOF I compiled it with USE flags aufs -device-mapper also, docker.service: [Unit] Description=Docker Application Container Engine Documentation=http://docs.docker.io Requires=network.target After=multi-user.target [Service] Type=simple ExecStartPre=/bin/mount --make-rprivate / ExecStart=/usr/bin/docker -d [Install] WantedBy=multi-user.target And finally, in case where it can be useful: # ls /var/lib/docker/ -l total 128 drwxr-xr-x 5 root root 4096 Nov 28 07:24 aufs drwx------ 185 root root 28672 Nov 28 18:04 containers drwx------ 113 root root 20480 Nov 28 15:41 graph -rw-r--r-- 1 root root 60416 Nov 28 18:04 linkgraph.db lrwxrwxrwx 1 root root 19 Dec 6 08:02 lxc-start-unconfined -> /usr/sbin/lxc-start -rw------- 1 root root 669 Nov 28 15:41 repositories-aufs drwx------ 2 root root 4096 Nov 2 19:13 volumes And in journalctl: Dec 06 10:00:23 pelvoux systemd[1]: Starting Docker Application Container Engine... Dec 06 10:00:23 pelvoux systemd[1]: Started Docker Application Container Engine. Dec 06 10:00:23 pelvoux docker[9017]: [/var/lib/docker|d13b7702] +job initapi() Dec 06 10:00:23 pelvoux docker[9017]: [/var/lib/docker|d13b7702.initapi()] Creating server Dec 06 10:00:23 pelvoux docker[9017]: [/var/lib/docker|d13b7702] -job initapi() = ERR (EOF) Dec 06 10:00:23 pelvoux docker[9017]: 2013/12/06 10:00:23 initapi: EOF Dec 06 10:00:23 pelvoux systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE Dec 06 10:00:23 pelvoux systemd[1]: Unit docker.service entered failed state.
I tried again upgrading this time deleting /var/lib/docker, and the daemon can now start successfully. I then had to rebuild my containers, and this went well too, it is now working.
Thanks for reporting back! Glad we could help you work through a few things over IRC - you know where to find us if you have further issues or questions! :)
now closing.