systemctl start docker 启动报错 Job for docker.service failed because start of the service was attempted too often. See “systemctl status docker.service” and “journalctl -xe” for details.
[root@ecs-98457 docker]# systemctl status docker.service ● docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled) Active: failed (Result: start-limit) since Sat 2022-04-02 20:58:21 CST; 2min 28s ago Docs: https://docs.docker.com Process: 20851 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE) Main PID: 20851 (code=exited, status=1/FAILURE)
Apr 02 20:58:21 ecs-98457 systemd[1]: start request repeated too quickly for docker.service Apr 02 20:58:21 ecs-98457 systemd[1]: Failed to start Docker Application Container Engine. Apr 02 20:58:21 ecs-98457 systemd[1]: Unit docker.service entered failed state. Apr 02 20:58:21 ecs-98457 systemd[1]: docker.service failed. Apr 02 20:58:21 ecs-98457 systemd[1]: start request repeated too quickly for docker.service Apr 02 20:58:21 ecs-98457 systemd[1]: Failed to start Docker Application Container Engine. Apr 02 20:58:21 ecs-98457 systemd[1]: docker.service failed. Apr 02 20:59:10 ecs-98457 systemd[1]: start request repeated too quickly for docker.service Apr 02 20:59:10 ecs-98457 systemd[1]: Failed to start Docker Application Container Engine. Apr 02 20:59:10 ecs-98457 systemd[1]: docker.service failed. [root@ecs-98457 docker]# vim /etc/docker/daemon.json [root@ecs-98457 docker]# systemctl status docker.service ● docker.service - Docker Application Container Engine
说说我的错误 我是因为daemon.json 文件里面 配置阿里云镜像加速里面含有空格 导致启动错误 进入daemon.json vim /etc/docker/daemon.json 将空格删除
重新加载daemon.json配置 systemctl daemon-reload 重启docker服务 systemctl restart docker 查看docker服务状态 systemctl status docker
|