moby: 1.8.0: Systemd can't start docker on Centos 7.1
Using the default configuration of the latest docker 1.8.0 release, systemd can’t start docker.
Workaround: yum install docker-selinux
Use the commands below to provide key information from your environment:
docker version: 1.8.0-1 docker info: N/A uname -a: Linux cent7 3.10.0-229.7.2.el7.x86_64 #1 SMP Tue Jun 23 22:06:11 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Provide additional environment details (AWS, VirtualBox, physical, etc.):
Reproduction:
[root@cent7 ~]# uname -a
Linux cent7 3.10.0-229.7.2.el7.x86_64 #1 SMP Tue Jun 23 22:06:11 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[root@cent7 ~]# rpm -qa | grep docker
[root@cent7 ~]# yum install -y http://yum.dockerproject.org/repo/main/centos/7/Packages/docker-engine-1.8.0-1.el7.centos.x86_64.rpm
Loaded plugins: fastestmirror
docker-engine-1.8.0-1.el7.centos.x86_64.rpm | 6.2 MB 00:00:03
Examining /var/tmp/yum-root-ctX5iw/docker-engine-1.8.0-1.el7.centos.x86_64.rpm: docker-engine-1.8.0-1.el7.centos.x86_64
Marking /var/tmp/yum-root-ctX5iw/docker-engine-1.8.0-1.el7.centos.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package docker-engine.x86_64 0:1.8.0-1.el7.centos will be installed
--> Processing Dependency: libcgroup for package: docker-engine-1.8.0-1.el7.centos.x86_64
Loading mirror speeds from cached hostfile
* base: mirror.evolvedservers.com
* extras: centos.mbni.med.umich.edu
* updates: mirror.cc.columbia.edu
--> Running transaction check
---> Package libcgroup.x86_64 0:0.41-8.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
==============================================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================================
Installing:
docker-engine x86_64 1.8.0-1.el7.centos /docker-engine-1.8.0-1.el7.centos.x86_64 27 M
Installing for dependencies:
libcgroup x86_64 0.41-8.el7 base 64 k
Transaction Summary
==============================================================================================================================================================
Install 1 Package (+1 Dependent package)
Total size: 27 M
Total download size: 64 k
Installed size: 27 M
Downloading packages:
libcgroup-0.41-8.el7.x86_64.rpm | 64 kB 00:00:15
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : libcgroup-0.41-8.el7.x86_64 1/2
Installing : docker-engine-1.8.0-1.el7.centos.x86_64 2/2
Verifying : docker-engine-1.8.0-1.el7.centos.x86_64 1/2
Verifying : libcgroup-0.41-8.el7.x86_64 2/2
Installed:
docker-engine.x86_64 0:1.8.0-1.el7.centos
Dependency Installed:
libcgroup.x86_64 0:0.41-8.el7
Complete!
[root@cent7 ~]# systemctl status docker
docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled)
Active: inactive (dead)
Docs: https://docs.docker.com
[root@cent7 ~]# systemctl start docker
Job for docker.service failed. See 'systemctl status docker.service' and 'journalctl -xn' for details.
[root@cent7 ~]# journalctl -xn
-- Logs begin at Sun 2015-07-12 09:27:56 EDT, end at Sun 2015-07-12 09:34:04 EDT. --
Jul 12 09:32:34 cent7 systemd[1]: Starting Docker Socket for the API.
-- Subject: Unit docker.socket has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit docker.socket has begun starting up.
Jul 12 09:32:34 cent7 systemd[1]: Listening on Docker Socket for the API.
-- Subject: Unit docker.socket has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit docker.socket has finished starting up.
--
-- The start-up result is done.
Jul 12 09:32:34 cent7 systemd[1]: Starting Docker Application Container Engine...
-- Subject: Unit docker.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit docker.service has begun starting up.
Jul 12 09:32:34 cent7 kernel: loop: module loaded
Jul 12 09:32:40 cent7 docker[2603]: time="2015-07-12T09:32:40.871943813-04:00" level=info msg="Option DefaultDriver: bridge"
Jul 12 09:32:40 cent7 docker[2603]: time="2015-07-12T09:32:40.872733230-04:00" level=info msg="Option DefaultNetwork: bridge"
Jul 12 09:32:40 cent7 docker[2603]: time="2015-07-12T09:32:40.896696252-04:00" level=warning msg="Running modprobe bridge nf_nat br_netfilter failed with messag
Jul 12 09:34:04 cent7 systemd[1]: docker.service operation timed out. Terminating.
Jul 12 09:34:04 cent7 systemd[1]: Failed to start Docker Application Container Engine.
-- Subject: Unit docker.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit docker.service has failed.
--
-- The result is failed.
Jul 12 09:34:04 cent7 systemd[1]: Unit docker.service entered failed state.
Expected to see docker package install correctly by default and allow using systemd to startup docker on the machine.
This is running inside a fresh install of Centos 7.1 inside virtualbox. Docker 1.7.1 works with no issue.
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 127 (52 by maintainers)
@jfrazelle You can ignore the bridge modprobe failure message. That will be printed if the bridge module is compiled into the kernel rather than as a module. We should rather check the docker logs.
@squeaky-pl One more thing that you can do is send
SIGUSR1
to docker daemon and if docker daemon is anywhere near sane state it should dump the stack traces of all the go routines inside docker daemon. You have to start the daemon in debug mode though. If you can collect those traces and post it here that would be helpful.@abierbaum @squeaky-pl @KalleDK As a quick check, can you enable debugs (-D) and restart the docker-service ?
ExecStart=/usr/bin/docker daemon -D -H fd://
inside/lib/systemd/system/docker.service
systemctl daemon-reload
systemctl restart docker.service
journalctl