運行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”]文章來源:http://www.zghlxwxcb.cn/news/detail-851447.html
修改好后,重新啟動docker服務文章來源地址http://www.zghlxwxcb.cn/news/detail-851447.html
systemctl daemon-reload
systemctl restart docker
到了這里,關于systemctl start docker報錯(code=exited, status=1/FAILURE)的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!