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.
Similar Posts:
- Docker Cannot Start: Failed to start Docker Application Container Engine
- Job for docker.service failed because the control process exited with error code. See “syste…
- [Solved] Failed to start Docker Application Container Engine.
- [Solved] Docker error: Error starting daemon: Error initializing network controller: list bridge addresses failed: no available network
- [Solved] Libvirt startup error: failed to start virtualization daemon
- Elimination of installation and startup errors of docker
- A dependency job for docker.service failed
- Docker ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? [How to Solve]
- An error is reported when the docker command is executed in Jenkins
- [Solved] http: server gave HTTP response to HTTPS client