完美解决虚拟机Docker启动异常Job for docker.service failed because the control process exited with error code.

用虚拟机测试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就是启动不起来

查了一些解决方法 有的说daemon.json的配置错了
我从未配置过daemon.json 打开一看 里面是空的

解决方法:

修改/etc/sysconfig/docker文件

OPTIONS='--selinux-enabled --log-driver=journald --signature-verification=false'
修改为DOCKER_OPTS="--storage-driver=devicemapper"

修改掉或者注释掉原来的都行
在这里插入图片描述


发布了174 篇原创文章 · 获赞 5 · 访问量 24万+

猜你喜欢

转载自blog.csdn.net/Piconjo/article/details/104997081