当前位置:   article > 正文

docker启动失败 status=1/FAILURE status=203 Failed to start Docker Application Container Engine._docker.service: main process exited, code=exited,

docker.service: main process exited, code=exited, status=1/failure

docker.service: main process exited, code=exited, status=1/FAILURE
Mar 25 14:34:00 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
Mar 25 14:34:00 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
Mar 25 14:34:00 localhost.localdomain systemd[1]: docker.service failed.
Mar 25 14:34:00 localhost.localdomain systemd[1]: docker.service holdoff time over, scheduling restart.
Mar 25 14:34:00 localhost.localdomain systemd[1]: Stopped Docker Application Container Engine.
Mar 25 14:34:00 localhost.localdomain systemd[1]: start request repeated too quickly for docker.service
Mar 25 14:34:00 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
Mar 25 14:34:00 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
Mar 25 14:34:00 localhost.localdomain systemd[1]: docker.service failed.
Mar 25 14:34:50 localhost.localdomain systemd[1]: start request repeated too quickly for docker.service
Mar 25 14:34:50 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
Mar 25 14:34:50 localhost.localdomain systemd[1]: docker.service failed.
Mar 25 14:34:55 localhost.localdomain systemd[1]: start request repeated too quickly for docker.service
Mar 25 14:34:55 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
Mar 25 14:34:55 localhost.localdomain systemd[1]: docker.service failed.
Mar 25 14:35:15 localhost.localdomain systemd[1]: Starting Docker Application Container Engine...
Mar 25 14:35:15 localhost.localdomain dockerd[21306]: Failed to connect to containerd: exec: "docker-containerd": executable file not found in $重点查看/usr/local/ 下的docker文件是否存在 再给予权限chmod 777

vi /etc/docker/daemon.json 
{
"registry-mirrors": ["https://registry.docker-cn.com"]
}

 


Mar 25 14:35:15 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Mar 25 14:35:15 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
Mar 25 14:35:15 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
Mar 25 14:35:15 localhost.localdomain systemd[1]: docker.service failed.
Mar 25 14:35:16 localhost.localdomain systemd[1]: docker.service holdoff time over, scheduling restart.
Mar 25 14:35:16 localhost.localdomain systemd[1]: Stopped Docker Application Container Engine.
Mar 25 14:35:16 localhost.localdomain systemd[1]: Starting Docker Application Container Engine...
Mar 25 14:35:16 localhost.localdomain dockerd[21318]: Failed to connect to containerd: exec: "docker-containerd": executable file not found in $
Mar 25 14:35:16 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Mar 25 14:35:16 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
Mar 25 14:35:16 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
Mar 25 14:35:16 localhost.localdomain systemd[1]: docker.service failed.
Mar 25 14:35:16 localhost.localdomain systemd[1]: docker.service holdoff time over, scheduling restart.
Mar 25 14:35:16 localhost.localdomain systemd[1]: Stopped Docker Application Container Engine.
Mar 25 14:35:16 localhost.localdomain systemd[1]: Starting Docker Application Container Engine...
 

 

vim /lib/systemd/system/docker.service

[Unit]
Description=Docker Application Container Engine
Documentation=https://docs.docker.com
After=network-online.target firewalld.service
Wants=network-online.target

[Service]
Type=notify
# the default is not to use systemd for cgroups because the delegate issues still
# exists and systemd currently does not support the cgroup feature set required
# for containers run by docker
ExecStart=/usr/bin/dockerd
ExecReload=/bin/kill -s HUP $MAINPID
# Having non-zero Limit*s causes performance problems due to accounting overhead
# in the kernel. We recommend using cgroups to do container-local accounting.
LimitNOFILE=infinity
LimitNPROC=infinity
LimitCORE=infinity
# Uncomment TasksMax if your systemd version supports it.
# Only systemd 226 and above support this version.
#TasksMax=infinity
TimeoutStartSec=0
# set delegate yes so that systemd does not reset the cgroups of docker containers
Delegate=yes
# kill only the docker process, not all processes in the cgroup
KillMode=process
# restart the docker process if it exits prematurely
Restart=on-failure
StartLimitBurst=3
StartLimitInterval=60s

[Install]
WantedBy=multi-user.target
 

systemctl daemon-reload
systemctl start docker 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/176695
推荐阅读
相关标签
  

闽ICP备14008679号