赞
踩
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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。