Doesn't start after installation
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | docker.io (Ubuntu) |
Undecided
|
Unassigned | ||
| | Vivid |
Undecided
|
Unassigned | ||
Bug Description
[SRU Description]
[Impact]
This bug affect the start of the docker daemon, as it isn't started after installation.
Upgrade is broken also when using a direct backport from wily.
Some ajustment had to be done in docker.io.postinst to correct this upgrade behavior.
[Test Case]
start a fresh installed vivid
sudo apt-get update && sudo apt-get install docker.io
sudo systemctl status docker.socket show that the daemon is not started.
Actual results:
● docker.socket - Docker Socket for the API
Loaded: loaded (/lib/systemd/
Active: inactive (dead)
Listen: /var/run/
To test this proposed package
you can on a fresh installation each time:
1-Install the proposed package directly, and check that docker.socket service is active
sudo systemctl status docker.socket
Expected results:
● docker.socket - Docker Socket for the API
Loaded: loaded (/lib/systemd/
Active: active (running) since Fri 2015-06-26 16:05:46 UTC; 19s ago
Listen: /var/run/
sudo docker version
Expected results:
Client version: 1.6.2
Client API version: 1.18
Go version (client): go1.3.3
Git commit (client): 7c8fca2
OS/Arch (client): linux/amd64
Server version: 1.6.2
Server API version: 1.18
Go version (server): go1.3.3
Git commit (server): 7c8fca2
OS/Arch (server): linux/amd64
2-On a fresh vivid install, install docker-1.5.0,
sudo docker version:
expected results:
Client version: 1.5.0
Client API version: 1.17
Go version (client): go1.3.3
Git commit (client): a8a31ef
OS/Arch (client): linux/amd64
FATA[0000] Get http://
then upgrade to proposed package, and check if docker service is active.
sudo systemctl status docker.socket,
expected results:
● docker.socket - Docker Socket for the API
Loaded: loaded (/lib/systemd/
Active: active (running) since Fri 2015-06-26 16:15:18 UTC; 23s ago
Listen: /var/run/
sudo docker version;
Expected results:
Client version: 1.6.2
Client API version: 1.18
Go version (client): go1.3.3
Git commit (client): 7c8fca2
OS/Arch (client): linux/amd64
Server version: 1.6.2
Server API version: 1.18
Go version (server): go1.3.3
Git commit (server): 7c8fca2
OS/Arch (server): linux/amd64
3-Install docker-1.5.0,
start service manually:
sudo systemctl start docker.socket && sudo systemctl status docker.socket
Expected results:
● docker.socket - Docker Socket for the API
Loaded: loaded (/lib/systemd/
Active: active (listening) since Fri 2015-06-26 16:20:41 UTC; 7ms ago
Listen: /var/run/
then upgrade to proposed package, and check if docker service is active.
sudo systemctl status docker.socket,
expected results:
● docker.socket - Docker Socket for the API
Loaded: loaded (/lib/systemd/
Active: active (running) since Fri 2015-06-26 16:15:18 UTC; 23s ago
Listen: /var/run/
sudo docker version;
Expected results:
Client version: 1.6.2
Client API version: 1.18
Go version (client): go1.3.3
Git commit (client): 7c8fca2
OS/Arch (client): linux/amd64
Server version: 1.6.2
Server API version: 1.18
Go version (server): go1.3.3
Git commit (server): 7c8fca2
OS/Arch (server): linux/amd64
[Regression Potential]
This fix reset the saved state of systemd docker.service and docker.socket units,
so it may affect a user that has installed docker.io (1.5.0~
then rebooted or manually started the service, then has manually shutdown the service.
The last state will be reset.
It is worth noting than since docker.
the docker.service is marked on-boot, so docker.socket is not so usefull anymore.
It is retained for minimizing divergence with upstream.
[Original Bug Description]
I need to manually invoke "systemctl start docker.socket".
| Youhei Tooyama (ytooyama) wrote : | #1 |
| Youhei Tooyama (ytooyama) wrote : | #2 |
[Update]The following combinations to work.
systemd (219-7ubuntu6)
docker.io (1.5.0~
~# systemctl start docker
~# systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/
Active: active (running) since Thu 2015-06-18 12:04:32 JST; 1s ago
Docs: http://
Main PID: 1875 (docker)
CGroup: /system.
├─1875 /usr/bin/docker -d -H fd://
└─1942 /sbin/apparmor_
Jun 18 12:04:32 vivid-docker systemd[1]: Started Docker Application Container Engine.
Jun 18 12:04:32 vivid-docker systemd[1]: Starting Docker Application Container Engine...
Jun 18 12:04:32 vivid-docker docker[1875]: time="2015-
Jun 18 12:04:32 vivid-docker docker[1875]: time="2015-
Jun 18 12:04:32 vivid-docker docker[1875]: time="2015-
Jun 18 12:04:33 vivid-docker docker[1875]: time="2015-
Jun 18 12:04:33 vivid-docker docker[1875]: time="2015-
Hint: Some lines were ellipsized, use -l to show in full.
| Robie Basak (racb) wrote : | #3 |
Believed fixed in Wily, but still affects Vivid.
| Changed in docker.io (Ubuntu): | |
| status: | New → Fix Released |
| description: | updated |
| Kick In (kick-d) wrote : | #4 |
Here is the diff for the docker.io.postinst between vivid and wily:
http://
| Martin Pitt (pitti) wrote : | #5 |
Thanks @kick-d, this looks fine (as discussed on IRC).


Me too.
workaround is:
root@ubuntu:~# apt-get update && apt-get -y install docker.io system/ docker. service; disabled; vendor preset: enabled) docs.docker. com slice/docker. service
root@ubuntu:~# service docker start
root@ubuntu:~# service docker status
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/
Active: active (running) since Fri 2015-06-12 10:31:40 JST; 2s ago
Docs: http://
Main PID: 4953 (docker)
CGroup: /system.
└─4953 /usr/bin/docker -d -H fd://
Jun 12 10:31:40 ubuntu docker[4953]: time="2015- 06-12T10: 31:40+09: 00" level=info msg="+job se...//)" 06-12T10: 31:40+09: 00" level=info msg="Listeni... ()" 06-12T10: 31:40+09: 00" level=info msg="+job in...r()" 06-12T10: 31:40+09: 00" level=info msg="-job in...(0)" 06-12T10: 31:41+09: 00" level=info msg="WARNING...it." 06-12T10: 31:41+09: 00" level=info msg="Loading...rt." 06-12T10: 31:41+09: 00" level=info msg="Loading...ne." 06-12T10: 31:41+09: 00" level=info msg="docker ...ufs" 06-12T10: 31:41+09: 00" level=info msg="+job ac...s()" 06-12T10: 31:41+09: 00" level=info msg="-job ac...(0)"
Jun 12 10:31:40 ubuntu docker[4953]: time="2015-
Jun 12 10:31:40 ubuntu docker[4953]: time="2015-
Jun 12 10:31:40 ubuntu docker[4953]: time="2015-
Jun 12 10:31:41 ubuntu docker[4953]: time="2015-
Jun 12 10:31:41 ubuntu docker[4953]: time="2015-
Jun 12 10:31:41 ubuntu docker[4953]: time="2015-
Jun 12 10:31:41 ubuntu docker[4953]: time="2015-
Jun 12 10:31:41 ubuntu docker[4953]: time="2015-
Jun 12 10:31:41 ubuntu docker[4953]: time="2015-
Hint: Some lines were ellipsized, use -l to show in full.
root@ubuntu:~# docker version
Client version: 1.5.0
Client API version: 1.17
Go version (client): go1.3.3
Git commit (client): a8a31ef
OS/Arch (client): linux/amd64
Server version: 1.5.0
Server API version: 1.17
Go version (server): go1.3.3
Git commit (server): a8a31ef
or reboot after docker.io installation.