运行systemctl start docker
报错内容如下:
输入systemctl status docker.service
显示以下内容:
本次启动不起来与docker服务无关
具体解决问题是修改 /etc/docker/daemon.json,vim /etc/docker/daemon.json
# 添加如下内容
{"registry-mirrors": ["https://docker.mirrors.ustc.edu.cn","https://registry.docker-cn.com"
],"storage-driver": "overlay2","storage-opts": ["overlay2.override_kernel_check=true"]
}
docker服务启动不起来,需要添加存储驱动
“storage-driver”: “overlay2”,
“storage-opts”: [“overlay2.override_kernel_check=true”]
修改好后,重新启动docker服务
systemctl daemon-reload
systemctl restart docker