安装docker后,启动报错Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xe” for details.
解决方案:
输入vim /etc/sysconfig/docker-storage 进入编辑器,输入i,右下方出现insert,把源文件内容删除改为:
DOCKER_STORAGE_OPTIONS="–selinux-enabled --log-driver=journald --signature-verification=false"
改好后,按下esc键,然后输入:wq退出
退出后,继续输入 vim /etc/docker/daemon.json ,操作同上。
写入指定参数:
{ “storage-driver”: “devicemapper” }
然后重启docker服务
systemctl restart docker