使用阿里云机器重启docker服务出现错误提示信息
[root@iz2ze5ivwiz2bnwddc20k4z ~]# 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.
使用 journalctl -xe 查看详情
[root@iz2ze5ivwiz2bnwddc20k4z ~]# journalctl -xe Apr 27 13:48:23 *** dockerd[1744]: time="2018-04-27T13:48:23.423296237+08:00" level=info msg="libcontainerd: new containerd process, pid: 1747" Apr 27 13:48:24 *** dockerd[1744]: time="2018-04-27T13:48:24.432236287+08:00" level=error msg="[graphdriver] prior storage driver overlay2 failed: driver not supported"
解决方案:修改docker镜像,容器存放位置。
默认情况下docker的存放位置为:
/var/lib/docker
[root@iz2ze5ivwiz2bnwddc20k4z ~]# sudo mv /var/lib/docker /var/lib/docker.old
正常启动docker
[root@iz2ze5ivwiz2bnwddc20k4z ~]# service docker start
Redirecting to /bin/systemctl start docker.service
检查是否能查看镜像
[root@iz2ze5ivwiz2bnwddc20k4z ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
确认无误后卸载临时挂载点,删除/var/lib/docker.old
[root@iz2ze5ivwiz2bnwddc20k4z ~]# rm -rf /var/lib/docker.old