Hi guys,
I have a question related to docker service.
I didn’t install docker-engine but docker contained when installing kubernetes as i followed this tutorial.
I checked the docker’s version and it was 1.8…2.
But when i start the docker, this error appeared:
"Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xe” for details."
Can you guys tell me why?
if you run systemctl status docker.service you will get the logs and it might be more clear what the problem is. other wise this is way to vague to give you any help.
[root@ip-10-0-7-223 ~]# systemctl start docker.service
Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xe” for details.
And what happend when check status of docker.service.
[root@ip-10-0-7-223 ~]# systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: inactive (dead) (Result: exit-code) since Tue 2016-02-09 02:39:40 UTC; 23s ago
Docs: http://docs.docker.com
Process: 32085 ExecStart=/usr/bin/docker daemon $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY (code=exited, status=2)
Main PID: 32085 (code=exited, status=2)
CGroup: /system.slice/docker.service
Feb 09 02:39:40 ip-10-0-7-223 systemd[1]: docker.service: main process exite…T
Feb 09 02:39:40 ip-10-0-7-223 systemd[1]: Failed to start Docker Application…
Feb 09 02:39:40 ip-10-0-7-223 systemd[1]: Unit docker.service entered failed…
Feb 09 02:39:40 ip-10-0-7-223 systemd[1]: docker.service failed.
Feb 09 02:39:40 ip-10-0-7-223 systemd[1]: docker.service holdoff time over, …
Hint: Some lines were ellipsized, use -l to show in full.
The full content of journalctl -xe is very long,
Feb 09 02:38:40 ip-10-0-7-223 systemd[1]: Starting Docker Application Container Engine…
Feb 09 02:33:06 ip-10-0-7-223 dracut[22123]: -rw-r–r-- 1 root root 93 Dec 1 01:58 usr/lib/modprobe.d/cxgb4.conf
Feb 09 02:33:06 ip-10-0-7-223 dracut[22123]: -rw-r–r-- 1 root root 507 Dec 1 01:58 usr/lib/modprobe.d/libmlx4.conf
Feb 09 02:33:06 ip-10-0-7-223 dracut[22123]: drwxr-xr-x 4 root root 0 Feb 9 02:32 usr/lib/modules
Feb 09 02:33:06 ip-10-0-7-223 dracut[22123]: drwxr-xr-x 3 root root 0 Feb 9 02:32 usr/lib/modules/3.10.0-327.4.5.el7.x86_64
Feb 09 02:33:06 ip-10-0-7-223 dracut[22123]: drwxr-xr-x 9 root root 0 Feb 9 02:32 usr/lib/modules/3.10.0-327.4.5.el7.x86_64/kernel
Feb 09 02:33:06 ip-10-0-7-223 dracut[22123]: drwxr-xr-x 3 root root 0 Feb 9 02:32 usr/lib/modules/3.10.0-327.4.5.el7.x86_64/kernel/arch
Feb 09 02:33:06 ip-10-0-7-223 dracut[22123]: drwxr-xr-x 3 root root 0 Feb 9 02:32 usr/lib/modules/3.10.0-327.4.5.el7.x86_64/kernel/arch/x
Feb 09 02:33:06 ip-10-0-7-223 dracut[22123]: drwxr-xr-x 2 root root 0 Feb 9 02:32 usr/lib/modules/3.10.0-327.4.5.el7.x86_64/kernel/arch/x
Feb 09 02:33:06 ip-10-0-7-223 dracut[22123]: -rw-r–r-- 1 root root 21645 Jan 25 22:48 usr/lib/modules/3.10.0-327.4.5.el7.x86_64/kernel/arch/x
Feb 09 02:33:06 ip-10-0-7-223 dracut[22123]: -rw-r–r-- 1 root root 12165 Jan 25 22:48 usr/lib/modules/3.10.0-327.4.5.el7.x86_64/kernel/arch/x
Feb 09 02:33:06 ip-10-0-7-223 dracut[22123]: drwxr-xr-x 3 root root 0 Feb 9 02:32 usr/lib/modules/3.10.0-327.4.5.el7.x86_64/kernel/crypto
Feb 09 02:33:06 ip-10-0-7-223 dracut[22123]: -rw-r–r-- 1 root root 6837 Jan 25 22:48 usr/lib/modules/3.10.0-327.4.5.el7.x86_64/kernel/crypto
Feb 09 02:33:06 ip-10-0-7-223 dracut[22123]: drwxr-xr-x 2 root root 0 Feb 9 02:32 usr/lib/modules/3.10.0-327.4.5.el7.x86_64/kernel/crypto
Feb 09 02:33:06 ip-10-0-7-223 dracut[22123]: -rw-r–r-- 1 root root 9821 Jan 25 22:48 usr/lib/modules/3.10.0-327.4.5.el7.x86_64/kernel/crypto
Feb 09 02:33:06 ip-10-0-7-223 dracut[22123]: -rw-r–r-- 1 root root 11453 Jan 25 22:48 usr/lib/modules/3.10.0-327.4.5.el7.x86_64/kernel/crypto
Feb 09 02:33:06 ip-10-0-7-223 dracut[22123]: -rw-r–r-- 1 root root 5021 Jan 25 22:48 usr/lib/modules/3.10.0-327.4.5.el7.x86_64/kernel/crypto
Feb 09 02:33:06 ip-10-0-7-223 dracut[22123]: -rw-r–r-- 1 root root 6229 Jan 25 22:48 usr/lib/modules/3.10.0-327.4.5.el7.x86_64/kernel/crypto
Feb 09 02:33:06 ip-10-0-7-223 dracut[22123]: -rw-r–r-- 1 root root 20957 Jan 25 22:48 usr/lib/modules/3.10.0-327.4.5.el7.x86_64/kernel/crypto
Feb 09 02:33:06 ip-10-0-7-223 dracut[22123]: drwxr-xr-x 34 root root 0 Feb 9 02:32 usr/lib/modules/3.10.0-327.4.5.el7.x86_64/kernel/driver
Feb 09 02:33:06 ip-10-0-7-223 dracut[22123]: drwxr-xr-x 2 root root 0 Feb 9 02:32 usr/lib/modules/3.10.0-327.4.5.el7.x86_64/kernel/driver
Feb 09 02:33:06 ip-10-0-7-223 dracut[22123]: -rw-r–r-- 1 root root 17725 Jan 25 22:48 usr/lib/modules/3.10.0-327.4.5.el7.x86_64/kernel/driver
Feb 09 02:33:06 ip-10-0-7-223 dracut[22123]: -rw-r–r-- 1 root root 63309 Jan 25 22:48 usr/lib/modules/3.10.0-327.4.5.el7.x86_64/kernel/driver
Feb 09 02:33:06 ip-10-0-7-223 dracut[22123]: -rw-r–r-- 1 root root 17181 Jan 25 22:48 usr/lib/modules/3.10.0-327.4.5.el7.x86_64/kernel/driver
Feb 09 02:33:06 ip-10-0-7-223 dracut[22123]: -rw-r–r-- 1 root root 13797 Jan 25 22:48 usr/lib/modules/3.10.0-327.4.5.el7.x86_64/kernel/driver
Feb 09 02:35:13 ip-10-0-7-223 yum[31681]: Installed: autogen-libopts-5.18-5.el7.x86_64
Feb 09 02:35:13 ip-10-0-7-223 groupadd[31690]: group added to /etc/group: name=ntp, GID=38
Feb 09 02:35:13 ip-10-0-7-223 groupadd[31690]: group added to /etc/gshadow: name=ntp
Feb 09 02:35:13 ip-10-0-7-223 groupadd[31690]: new group: name=ntp, GID=38
Feb 09 02:35:13 ip-10-0-7-223 useradd[31694]: new user: name=ntp, UID=38, GID=38, home=/etc/ntp, shell=/sbin/nologin
Feb 09 02:35:13 ip-10-0-7-223 systemd[1]: Reloading.
Feb 09 02:35:13 ip-10-0-7-223 systemd[1]: Configuration file /usr/lib/systemd/system/auditd.service is marked world-inaccessible. This has no effect as con
Feb 09 02:35:13 ip-10-0-7-223 yum[31681]: Installed: ntpdate-4.2.6p5-22.el7.centos.1.x86_64
Feb 09 02:35:13 ip-10-0-7-223 systemd[1]: Reloading.
Feb 09 02:35:13 ip-10-0-7-223 systemd[1]: Configuration file /usr/lib/systemd/system/auditd.service is marked world-inaccessible. This has no effect as con
Feb 09 02:35:13 ip-10-0-7-223 yum[31681]: Installed: ntp-4.2.6p5-22.el7.centos.1.x86_64
Feb 09 02:35:21 ip-10-0-7-223 dbus[497]: [system] Activating via systemd: service name=‘org.freedesktop.PolicyKit1’ unit='polkit.service’
Feb 09 02:35:21 ip-10-0-7-223 systemd[1]: Starting Authorization Manager…
– Subject: Unit polkit.service has begun start-up
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit polkit.service has begun starting up.
Feb 09 02:35:21 ip-10-0-7-223 polkitd[31731]: Started polkitd version 0.112
Feb 09 02:35:21 ip-10-0-7-223 polkitd[31731]: Loading rules from directory /etc/polkit-1/rules.d
Feb 09 02:35:21 ip-10-0-7-223 polkitd[31731]: Loading rules from directory /usr/share/polkit-1/rules.d
Feb 09 02:35:21 ip-10-0-7-223 polkitd[31731]: Finished loading, compiling and executing 2 rules
Feb 09 02:35:21 ip-10-0-7-223 dbus[497]: [system] Successfully activated service 'org.freedesktop.PolicyKit1’
Feb 09 02:35:21 ip-10-0-7-223 polkitd[31731]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
Feb 09 02:35:21 ip-10-0-7-223 systemd[1]: Started Authorization Manager.
– Subject: Unit polkit.service has finished start-up
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
[root@ip-10-0-7-223 ~]#
[root@ip-10-0-7-223 ~]# clear
[root@ip-10-0-7-223 ~]# journalctl -xe
– Unit lvm2-lvmpolld.socket has finished starting up.
– The start-up result is done.
Feb 09 02:35:54 ip-10-0-7-223 systemd[1]: Starting LVM2 poll daemon socket.
– Subject: Unit lvm2-lvmpolld.socket has begun start-up
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit lvm2-lvmpolld.socket has begun starting up.
Feb 09 02:35:54 ip-10-0-7-223 yum[31774]: Installed: 7:lvm2-2.02.130-5.el7.x86_64
Feb 09 02:36:07 ip-10-0-7-223 kernel: SELinux: 2048 avtab hash slots, 105902 rules.
Feb 09 02:36:07 ip-10-0-7-223 kernel: SELinux: 2048 avtab hash slots, 105902 rules.
Feb 09 02:36:07 ip-10-0-7-223 kernel: SELinux: 8 users, 105 roles, 4967 types, 304 bools, 1 sens, 1024 cats
Feb 09 02:36:07 ip-10-0-7-223 kernel: SELinux: 83 classes, 105902 rules
Feb 09 02:36:08 ip-10-0-7-223 dbus[497]: avc: received policyload notice (seqno=3)
Feb 09 02:36:08 ip-10-0-7-223 yum[31774]: Installed: docker-selinux-1.8.2-10.el7.centos.x86_64
Feb 09 02:36:08 ip-10-0-7-223 dbus[497]: [system] Reloaded configuration
Feb 09 02:36:08 ip-10-0-7-223 useradd[31949]: new group: name=dockerroot, GID=991
Feb 09 02:36:08 ip-10-0-7-223 useradd[31949]: new user: name=dockerroot, UID=994, GID=991, home=/var/lib/docker, shell=/sbin/nologin
Feb 09 02:36:10 ip-10-0-7-223 systemd[1]: Reloading.
Feb 09 02:36:10 ip-10-0-7-223 systemd[1]: Configuration file /usr/lib/systemd/system/auditd.service is marked world-inaccessible. This has no effect as con
Feb 09 02:36:10 ip-10-0-7-223 yum[31774]: Installed: docker-1.8.2-10.el7.centos.x86_64
Feb 09 02:36:11 ip-10-0-7-223 systemd[1]: Reloading.
Feb 09 02:36:11 ip-10-0-7-223 systemd[1]: Configuration file /usr/lib/systemd/system/auditd.service is marked world-inaccessible. This has no effect as con
Feb 09 02:36:11 ip-10-0-7-223 yum[31774]: Installed: kubernetes-node-1.0.3-0.2.gitb9a88a7.el7.x86_64
Feb 09 02:36:11 ip-10-0-7-223 yum[31774]: Installed: kubernetes-1.0.3-0.2.gitb9a88a7.el7.x86_64
Feb 09 02:36:11 ip-10-0-7-223 groupadd[31989]: group added to /etc/group: name=etcd, GID=990
Feb 09 02:36:11 ip-10-0-7-223 groupadd[31989]: group added to /etc/gshadow: name=etcd
Feb 09 02:36:11 ip-10-0-7-223 groupadd[31989]: new group: name=etcd, GID=990
Feb 09 02:36:11 ip-10-0-7-223 useradd[31994]: new user: name=etcd, UID=993, GID=990, home=/var/lib/etcd, shell=/sbin/nologin
Feb 09 02:36:12 ip-10-0-7-223 systemd[1]: Reloading.
Feb 09 02:36:12 ip-10-0-7-223 systemd[1]: Configuration file /usr/lib/systemd/system/auditd.service is marked world-inaccessible. This has no effect as con
Feb 09 02:36:12 ip-10-0-7-223 yum[31774]: Installed: etcd-2.1.1-2.el7.x86_64
Feb 09 02:37:13 ip-10-0-7-223 polkitd[31731]: Registered Authentication Agent for unix-process:32016:72078 (system bus name :1.17 [/usr/bin/pkttyagent --no
Feb 09 02:37:13 ip-10-0-7-223 systemd[1]: Starting Docker Storage Setup…
– Subject: Unit docker-storage-setup.service has begun start-up
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit docker-storage-setup.service has begun starting up.
Feb 09 02:37:13 ip-10-0-7-223 docker-storage-setup[32021]: Volume group “xvda1” not found
Feb 09 02:37:13 ip-10-0-7-223 docker-storage-setup[32021]: Cannot process volume group xvda1
Feb 09 02:37:13 ip-10-0-7-223 docker-storage-setup[32021]: No volume group has been specified and root device volume group could not be determined. Exiting
Feb 09 02:37:13 ip-10-0-7-223 systemd[1]: docker-storage-setup.service: main process exited, code=exited, status=1/FAILURE
Feb 09 02:37:13 ip-10-0-7-223 systemd[1]: Failed to start Docker Storage Setup.
– Subject: Unit docker-storage-setup.service has failed
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit docker-storage-setup.service has failed.
– The result is failed.
Feb 09 02:37:13 ip-10-0-7-223 systemd[1]: Unit docker-storage-setup.service entered failed state.
Feb 09 02:37:13 ip-10-0-7-223 systemd[1]: docker-storage-setup.service failed.
Feb 09 02:37:13 ip-10-0-7-223 systemd[1]: Starting Docker Application Container Engine…
– Subject: Unit docker.service has begun start-up
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit docker.service has begun starting up.
Feb 09 02:37:13 ip-10-0-7-223 docker[32029]: time=“2016-02-09T02:37:13.111114896Z” level=info msg="Listening for HTTP on unix (/var/run/docker.sock)"
Feb 09 02:37:13 ip-10-0-7-223 kernel: device-mapper: uevent: version 1.0.3
Feb 09 02:37:13 ip-10-0-7-223 kernel: device-mapper: ioctl: 4.29.0-ioctl (2014-10-28) initialised: dm-devel@redhat.com
Feb 09 02:37:13 ip-10-0-7-223 kernel: loop: module loaded
Feb 09 02:37:13 ip-10-0-7-223 docker[32029]: time=“2016-02-09T02:37:13.200252805Z” level=error msg="WARNING: No --storage-opt dm.thinpooldev specified, usi
Feb 09 02:38:02 ip-10-0-7-223 sshd[32070]: Received disconnect from 203.174.65.44: 11: authentication cancelled [preauth]
Feb 09 02:38:13 ip-10-0-7-223 systemd[1]: docker.service start operation timed out. Terminating.
Feb 09 02:38:13 ip-10-0-7-223 systemd[1]: docker.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Feb 09 02:38:13 ip-10-0-7-223 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
lines 1025-1076/1191 95%
[root@ip-10-0-7-223 ~]#
[root@ip-10-0-7-223 ~]#
[root@ip-10-0-7-223 ~]# journalctl -xe
Feb 09 02:40:12 ip-10-0-7-223 systemd[1]: Started Cleanup of Temporary Directories.
– Subject: Unit systemd-tmpfiles-clean.service has finished start-up
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit systemd-tmpfiles-clean.service has finished starting up.
– The start-up result is done.
Feb 09 02:40:33 ip-10-0-7-223 docker-storage-setup[32099]: No volume group has been specified and root device volume group could not be determined. Exiting
Feb 09 02:40:33 ip-10-0-7-223 systemd[1]: docker-storage-setup.service: main process exited, code=exited, status=1/FAILURE
Feb 09 02:40:33 ip-10-0-7-223 systemd[1]: Failed to start Docker Storage Setup.
– Subject: Unit docker-storage-setup.service has failed
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit docker-storage-setup.service has failed.
– The result is failed.
Feb 09 02:40:33 ip-10-0-7-223 systemd[1]: Unit docker-storage-setup.service entered failed state.
Feb 09 02:40:33 ip-10-0-7-223 systemd[1]: docker-storage-setup.service failed.
Feb 09 02:40:33 ip-10-0-7-223 systemd[1]: Starting Docker Application Container Engine…
– Subject: Unit docker.service has begun start-up
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit docker.service has begun starting up.
Feb 09 02:40:35 ip-10-0-7-223 docker[32111]: time=“2016-02-09T02:40:35.249239228Z” level=error msg="WARNING: No --storage-opt dm.thinpooldev specified, usi
Feb 09 02:40:35 ip-10-0-7-223 docker[32111]: time=“2016-02-09T02:40:35.253039225Z” level=info msg="Listening for HTTP on unix (/var/run/docker.sock)"
Feb 09 02:40:48 ip-10-0-7-223 systemd-udevd[32117]: inotify_add_watch(7, /dev/dm-1, 10) failed: No such file or directory
Feb 09 02:40:48 ip-10-0-7-223 systemd-udevd[10877]: error: /dev/dm-1: No such file or directory
Feb 09 02:41:33 ip-10-0-7-223 systemd[1]: docker.service start operation timed out. Terminating.
Feb 09 02:41:33 ip-10-0-7-223 systemd[1]: docker.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Feb 09 02:41:33 ip-10-0-7-223 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.
Feb 09 02:41:33 ip-10-0-7-223 systemd[1]: Unit docker.service entered failed state.
Feb 09 02:41:33 ip-10-0-7-223 systemd[1]: docker.service failed.
Feb 09 02:41:33 ip-10-0-7-223 systemd[1]: docker.service holdoff time over, scheduling restart.
Feb 09 02:41:33 ip-10-0-7-223 systemd[1]: Starting Docker Storage Setup…
– Subject: Unit docker-storage-setup.service has begun start-up
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
– Unit docker-storage-setup.service has begun starting up.
Feb 09 02:41:33 ip-10-0-7-223 docker-storage-setup[32132]: Volume group “xvda1” not found
Feb 09 02:41:33 ip-10-0-7-223 docker-storage-setup[32132]: Cannot process volume group xvda1
Feb 09 02:42:33 ip-10-0-7-223 systemd-udevd[10877]: worker [32131] /devices/virtual/block/dm-1 is taking a long time
Feb 09 02:37:13 ip-10-0-7-223 docker-storage-setup[32021]: Volume group "xvda1" not found
Feb 09 02:37:13 ip-10-0-7-223 docker-storage-setup[32021]: Cannot process volume group xvda1
Feb 09 02:37:13 ip-10-0-7-223 docker-storage-setup[32021]: No volume group has been specified and root device volume group could not be determined. Exiting
Feb 09 02:37:13 ip-10-0-7-223 systemd[1]: docker-storage-setup.service: main process exited, code=exited, status=1/FAILURE
So it looks like you set up the storage incorrectly or made a typo maybe in the docker config, which set up instructions did you follow to set up the docker agent?
Just as i said in my first post,my intention was create a Kubernets cluster which is used to deploy and manager Docker container. You can see the link of tutorial i followed in my first post.
The point is i failed all the time when following that tutorial, so i think maybe it’s related to docker or sth.
Kubernetes packages contained docker package so i didn’t have to use some command line: yum install docker-engine…etc
So i checked the docker status and found out it was UNACTIVE. Then i tried to started docker service but it didn’t work. That’s all it is.