CentOS7的docker下载后启动失败 Job for docker.service failed because the control process exited with

CentOS7下载docker后启动会出现的错误:Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details
说明docker就没有启动成功

 

解决方法:

vim /etc/sysconfig/docker-storage

添加配置文件中:

DOCKER_STORAGE_OPTIONS="--selinux-enabled --log-driver=journald --signature-verification=false"

vim /etc/docker/daemon.json

写入指定参数:
{ "storage-driver": "devicemapper" }
重启docker服务

systemctl restart docker

没有出现错误信息,说明问题已经解决

 
posted @ 2020-07-22 16:48  RickL  阅读(9553)  评论(0编辑  收藏  举报