Tag Archives: Failed to start Docker Application Container Engine.

[Solved] Failed to start Docker Application Container Engine.

[root@dockertest ~]# systemctl status docker.service
● docker.service – Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Sat 2019-05-04 19:56:57 CST; 4s ago
Docs: https://docs.docker.com
Process: 13092 ExecStart=/usr/bin/dockerd -H fd:// –containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Main PID: 13092 (code=exited, status=1/FAILURE)

May 04 19:56:55 dockertest systemd[1]: Failed to start Docker Application Container Engine.
May 04 19:56:55 dockertest systemd[1]: Unit docker.service entered failed state.
May 04 19:56:55 dockertest systemd[1]: docker.service failed.
May 04 19:56:57 dockertest systemd[1]: docker.service holdoff time over, scheduling restart.
May 04 19:56:57 dockertest systemd[1]: Stopped Docker Application Container Engine.
May 04 19:56:57 dockertest systemd[1]: start request repeated too quickly for docker.service
May 04 19:56:57 dockertest systemd[1]: Failed to start Docker Application Container Engine.
May 04 19:56:57 dockertest systemd[1]: Unit docker.service entered failed state.
May 04 19:56:57 dockertest systemd[1]: docker.service failed.

Solution: // It’s just a matter of deleting this file.

[root@dockertest /]# cd /etc/docker
[root@dockertest docker]# ls
certs.d daemon.json daemon.json.rpmnew seccomp.json
[root@dockertest docker]# rm daemon.json
rm: remove regular file ‘daemon.json’?y
[root@dockertest docker]# ll
total 16
drwxr-xr-x. 5 root root 75 May 4 20:40 certs.d
-rw-r–r–. 1 root root 3 May 1 22:52 daemon.json.rpmnew
-rw-r–r–. 1 root root 10837 May 1 22:52 seccomp.json
[root@dockertest docker]# systemctl start docker
[root@dockertest docker]# systemctl enable docker

[root@dockertest docker]# systemctl status docker
● docker.service – Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2019-05-04 21:00:23 CST; 1min 16s ago
Docs: http://docs.docker.com
Main PID: 83247 (dockerd-current)
CGroup: /system.slice/docker.service
├─83247 /usr/bin/dockerd-current –add-runtime docker-runc=/usr/libexec/docker/docker-runc-current –default-runtime=docker-runc –exec-opt native.cgroupdri…
└─83255 /usr/bin/docker-containerd-current -l unix:///var/run/docker/libcontainerd/docker-containerd.sock –metrics-interval=0 –start-timeout 2m –state-di…

May 04 21:00:21 dockertest dockerd-current[83247]: time=”2019-05-04T21:00:21.945869452+08:00″ level=info msg=”libcontainerd: new containerd process, pid: 83255″
May 04 21:00:23 dockertest dockerd-current[83247]: time=”2019-05-04T21:00:23.057214144+08:00″ level=info msg=”Graph migration to content-addressability took 0.00 seconds”
May 04 21:00:23 dockertest dockerd-current[83247]: time=”2019-05-04T21:00:23.058452705+08:00″ level=info msg=”Loading containers: start.”
May 04 21:00:23 dockertest dockerd-current[83247]: time=”2019-05-04T21:00:23.104400849+08:00″ level=info msg=”Firewalld running: true”
May 04 21:00:23 dockertest dockerd-current[83247]: time=”2019-05-04T21:00:23.385892651+08:00″ level=info msg=”Default bridge (docker0) is assigned with an IP … address”
May 04 21:00:23 dockertest dockerd-current[83247]: time=”2019-05-04T21:00:23.632043070+08:00″ level=info msg=”Loading containers: done.”
May 04 21:00:23 dockertest dockerd-current[83247]: time=”2019-05-04T21:00:23.691412948+08:00″ level=info msg=”Daemon has completed initialization”
May 04 21:00:23 dockertest dockerd-current[83247]: time=”2019-05-04T21:00:23.691454541+08:00″ level=info msg=”Docker daemon” commit=”b2f74b2/1.13.1″ graphdriv…on=1.13.1
May 04 21:00:23 dockertest dockerd-current[83247]: time=”2019-05-04T21:00:23.746297646+08:00″ level=info msg=”API listen on /var/run/docker.sock”
May 04 21:00:23 dockertest systemd[1]: Started Docker Application Container Engine.
Hint: Some lines were ellipsized, use -l to show in full.

[Solved] Docker Starup Error: Failed to start Docker Application Container Engine.

error:

[root@localhost localdisk]# systemctl restart docker

Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xe” for details.

[root@localhost localdisk]# systemctl status docker

docker.service – Docker Application Container Engine

Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)

Active: failed (Result: exit-code) since 日 2019-05-19 17:15:19 CST; 6s ago

Docs: http://docs.docker.com

Process: 13393 ExecStart=/usr/bin/dockerd-current –add-runtime docker-runc=/usr/libexec/docker/docker-runc-current –default-runtime=docker-runc –exec-opt native.cgroupdriver=systemd –userland-proxy-path=/usr/libexec/docker/docker-proxy-current –init-path=/usr/libexec/docker/docker-init-current –seccomp-profile=/etc/docker/seccomp.json –graph=/localdisk/docker –storage-driver=overlay –registry-mirror=https://docker.mirrors.ustc.edu.cn $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY $REGISTRIES (code=exited, status=1/FAILURE)

Main PID: 13393 (code=exited, status=1/FAILURE)

May 19 17:15:19 localhost.localdomain systemd[1]: Starting Docker Application Container Engine…

May 19 17:15:19 localhost.localdomain dockerd-current[13393]: unable to configure the Docker daemon with file /etc/docker/daemon.json: the following direc…edu.cn])

May 19 17:15:19 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE

May 19 17:15:19 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.

May 19 17:15:19 localhost.localdomain systemd[1]: Unit docker.service entered failed state.

May 19 17:15:19 localhost.localdomain systemd[1]: docker.service failed.

Hint: Some lines were ellipsized, use -l to show in full.

Solution:</h1

1. Turn off both firewall and selinux

2. Modify the file /etc/docker/daemon.json (just paste and copy it, no more commas)

{

“registry-mirrors”: [“https://docker.mirrors.ustc.edu.cn“]

}

3. Restart docker, if not restart the virtual machine

systemctl daemon-reload

systemctl restart docker

The effect is as follows.