moby: systemctl start docker is failing
OS: CentOS 7 UName -a: Linux centos1 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
I have installed the latest Docker CE version.
Problem:
When I tried to execute sudo systemctl start docker
, I am getting the following error:
docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Thu 2017-07-13 13:45:01 IST; 8s ago
Docs: https://docs.docker.com
Process: 7283 ExecStart=/usr/bin/dockerd (code=exited, status=1/FAILURE)
Main PID: 7283 (code=exited, status=1/FAILURE)
Jul 13 13:45:01 centos1 systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Jul 13 13:45:01 centos1 systemd[1]: Failed to start Docker Application Container Engine.
Jul 13 13:45:01 centos1 systemd[1]: Unit docker.service entered failed state.
Jul 13 13:45:01 centos1 systemd[1]: docker.service failed.
Jul 13 13:45:01 centos1 systemd[1]: docker.service holdoff time over, scheduling restart.
Jul 13 13:45:01 centos1 systemd[1]: start request repeated too quickly for docker.service
Jul 13 13:45:01 centos1 systemd[1]: Failed to start Docker Application Container Engine.
Jul 13 13:45:01 centos1 systemd[1]: Unit docker.service entered failed state.
Jul 13 13:45:01 centos1 systemd[1]: docker.service failed.
As requested by @AkihiroSuda
The logs of journalctl -u docker
-- Logs begin at Thu 2017-07-13 13:27:44 IST, end at Thu 2017-07-13 14:05:06 IST. --
Jul 13 12:29:54 centos1 systemd[1]: Starting Docker Application Container Engine...
Jul 13 12:29:55 centos1 dockerd[3952]: time="2017-07-13T12:29:55.172776004+05:30" level=info msg="libcontainerd: new containerd process, pid: 3978"
Jul 13 12:29:55 centos1 dockerd[3952]: time="2017-07-13T12:29:55.256116779+05:30" level=warning msg="overlay: the backing xfs filesystem is formatted
Jul 13 12:29:55 centos1 dockerd[3952]: time="2017-07-13T12:29:55.256159270+05:30" level=info msg="[graphdriver] using prior storage driver: overlay"
Jul 13 12:29:55 centos1 dockerd[3952]: time="2017-07-13T12:29:55.269359710+05:30" level=info msg="Graph migration to content-addressability took 0.00
Jul 13 12:29:55 centos1 dockerd[3952]: time="2017-07-13T12:29:55.270046544+05:30" level=warning msg="mountpoint for pids not found"
Jul 13 12:29:55 centos1 dockerd[3952]: time="2017-07-13T12:29:55.270236647+05:30" level=info msg="Loading containers: start."
Jul 13 12:29:56 centos1 dockerd[3952]: time="2017-07-13T12:29:56.159221104+05:30" level=info msg="Default bridge (docker0) is assigned with an IP addr
Jul 13 12:29:56 centos1 dockerd[3952]: time="2017-07-13T12:29:56.352378612+05:30" level=info msg="Loading containers: done."
Jul 13 12:29:56 centos1 dockerd[3952]: time="2017-07-13T12:29:56.375549923+05:30" level=info msg="Daemon has completed initialization"
Jul 13 12:29:56 centos1 dockerd[3952]: time="2017-07-13T12:29:56.375583263+05:30" level=info msg="Docker daemon" commit=02c1d87 graphdriver=overlay ve
Jul 13 12:29:56 centos1 dockerd[3952]: time="2017-07-13T12:29:56.398399872+05:30" level=info msg="API listen on /var/run/docker.sock"
Jul 13 12:29:56 centos1 systemd[1]: Started Docker Application Container Engine.
Jul 13 13:39:32 centos1 systemd[1]: Stopping Docker Application Container Engine...
Jul 13 13:39:32 centos1 dockerd[3952]: time="2017-07-13T13:39:32.146053054+05:30" level=info msg="Processing signal 'terminated'"
Jul 13 13:39:32 centos1 dockerd[3952]: time="2017-07-13T13:39:32.171737214+05:30" level=info msg="stopping containerd after receiving terminated"
Jul 13 13:39:33 centos1 systemd[1]: Stopped Docker Application Container Engine.
Jul 13 13:42:49 centos1 systemd[1]: Starting Docker Application Container Engine...
Jul 13 13:42:49 centos1 dockerd[6703]: time="2017-07-13T13:42:49.884531291+05:30" level=info msg="libcontainerd: new containerd process, pid: 6709"
Jul 13 13:42:50 centos1 dockerd[6703]: time="2017-07-13T13:42:50.971088640+05:30" level=error msg="File descriptor 9 (/dev/mapper/control) leaked on p
Jul 13 13:42:50 centos1 dockerd[6703]: Error starting daemon: error initializing graphdriver: /dev/sda1 has a filesystem already, use dm.directlvm_dev
Jul 13 13:42:50 centos1 systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Jul 13 13:42:51 centos1 systemd[1]: Failed to start Docker Application Container Engine.
Jul 13 13:42:51 centos1 systemd[1]: Unit docker.service entered failed state.
Jul 13 13:42:51 centos1 systemd[1]: docker.service failed.
Jul 13 13:42:51 centos1 systemd[1]: docker.service holdoff time over, scheduling restart.
Jul 13 13:42:51 centos1 systemd[1]: Starting Docker Application Container Engine...
I followed https://github.com/moby/moby/issues/12087, and tried to replicate the docker-selinux trick. The attempt has failed.
Where am i making a mistake? I have browsed extensively for a solution to this problem but to no avail.
Regards Aditya
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (6 by maintainers)
I had this problem on Arch when the installed Linux version did not match the running Linux version (a frequent source of issues)
journalctl -u docker
shows more logsAs to me, I have get this error.
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
Finally I found, it the
/etc/docker/daemon.json
error, for I addregistry-mirrors
` { “runtimes”: {
} `
After i add it , then
systemctl restart docker
, I solved it.I have the similar problems, and I use
journalctl -u docker
, I got :then I delete the line ‘overlay’ items in /etc/docker/daemon.json and i slove the problem
you can use the command
check the log. And fix it