An error message appears when restarting the docker service using an Alibaba Cloud machine
[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.
Use journalctl -xe for details
[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"
Solution: Modify the docker image and the container storage location.
By default, the storage location of docker is:
/var/lib/docker
[root@iz2ze5ivwiz2bnwddc20k4z ~]# sudo mv /var/lib/docker /var/lib/docker.old
Start docker normally
[root@iz2ze5ivwiz2bnwddc20k4z ~]# service docker start
Redirecting to /bin/systemctl start docker.service
Check if the mirror can be viewed
[root@iz2ze5ivwiz2bnwddc20k4z ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
After confirmation, unmount the temporary mount point and delete /var/lib/docker.old
[root@iz2ze5ivwiz2bnwddc20k4z ~]# rm -rf /var/lib/docker.old