报错内容:
docker无法启动报错start docker Failed at step EXEC spawning /usr/bin/containerd
找不到/usr/bin/dockerd文件
解决思路:
1、首先看一下二进制安装docker的路径/usr/local/bin
对于旧的docker启动文件进行删除
rm -rf /etc/systemd/system/devicemapper.conf
然后新添加docker.service
cat >/etc/systemd/system/docker.service <<EOF
[Unit]
Description=Docker Application Container Engine
Documentation=http://docs.docker.io
[Service]
OOMScoreAdjust=-1000
Environment="PATH=/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin"
ExecStart=/usr/local/bin/dockerd
ExecStartPost=/sbin/iptables -I FORWARD -s 0.0.0.0/0 -j ACCEPT
ExecReload=/bin/kill -s HUP \$MAINPID
Restart=on-failure
RestartSec=5
LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity
Delegate=yes
KillMode=process
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload文章来源:https://www.toymoban.com/news/detail-803484.html
systemctl start docker
文章来源地址https://www.toymoban.com/news/detail-803484.html
到了这里,关于docker无法启动报错start docker Failed at step EXEC spawning /usr/bin/containerd的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!