centos下docker 关闭后重启报错:Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
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
没有出现错误信息,说明问题已经解决