docker 启动报错

启动失败了。

先贴出错误信息

[root@localhost local]# systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: failed (Result: start-limit) since 一 2019-06-17 10:47:09 CST; 2min 29s ago
Docs: https://docs.docker.com
Process: 7795 ExecStart=/usr/bin/dockerd (code=exited, status=1/FAILURE)
Main PID: 7795 (code=exited, status=1/FAILURE)

6月 17 10:47:09 localhost.localdomain systemd[1]: docker.service failed.
6月 17 10:47:09 localhost.localdomain systemd[1]: docker.service holdoff time over, scheduling restart.
6月 17 10:47:09 localhost.localdomain systemd[1]: Stopped Docker Application Container Engine.
6月 17 10:47:09 localhost.localdomain systemd[1]: start request repeated too quickly for docker.service
6月 17 10:47:09 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
6月 17 10:47:09 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
6月 17 10:47:09 localhost.localdomain systemd[1]: docker.service failed.
6月 17 10:47:33 localhost.localdomain systemd[1]: start request repeated too quickly for docker.service
6月 17 10:47:33 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
6月 17 10:47:33 localhost.localdomain systemd[1]: docker.service failed.
[root@localhost local]# systemctl start 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 docker]# vim /etc/docker/daemon.json

在 /etc/docker/daemon.json 添加内容:

{ "graph": "/mnt/docker-data", "storage-driver": "overlay" }

上一篇:WSL 配置 Systemd


下一篇:jsoncpp的简易教程