Docker启动失败:出现 Job for docker.service 守护进程无法开启解决办法

解决Docker容器运行失败
本文详细记录了阿里云ECS上Docker容器无法运行的问题排查过程,包括错误信息解析、配置文件修正及重启步骤,最终成功恢复Docker服务。

1.错误:突然提示阿里云的docker容器无法运行并且报错了,错误提示如下:

Welcome to Alibaba Cloud Elastic Compute Service !

[root@liuyan ~]# docker ps
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docke                                                                                                                 r daemon running?

2.使用命令行启动docker容器报错提示如下
[root@liuyan ~]# systemctl start docker
Job for docker.service failed because the control process exited with error code                                                                                                                 . See "systemctl status docker.service" and "journalctl -xe" for details.
[root@liuyan ~]# systemctl status docker.service
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor prese                                                                                                  

tplink@TVU24SCR01:/$ journalctl -xeu docker.service Dec 05 00:06:27 TVU24SCR01 systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE ░░ Subject: Unit process exited ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ An ExecStart= process belonging to unit docker.service has exited. ░░ ░░ The process' exit code is 'exited' and its exit status is 1. Dec 05 00:06:27 TVU24SCR01 systemd[1]: docker.service: Failed with result 'exit-code'. ░░ Subject: Unit failed ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ The unit docker.service has entered the 'failed' state with result 'exit-code'. Dec 05 00:06:27 TVU24SCR01 systemd[1]: Failed to start docker.service - Docker Application Container Engine. ░░ Subject: A start job for unit docker.service has failed ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ A start job for unit docker.service has finished with a failure. ░░ ░░ The job identifier is 999673 and the job result is failed. Dec 05 00:06:29 TVU24SCR01 systemd[1]: docker.service: Scheduled restart job, restart counter is at 3. ░░ Subject: Automatic restarting of a unit has been scheduled ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ Automatic restarting of the unit docker.service has been scheduled, as the result for ░░ the configured Restart= setting for the unit. Dec 05 00:06:29 TVU24SCR01 systemd[1]: docker.service: Start request repeated too quickly. Dec 05 00:06:29 TVU24SCR01 systemd[1]: docker.service: Failed with result 'exit-code'. ░░ Subject: Unit failed ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ The unit docker.service has entered the 'failed' state with result 'exit-code'. Dec 05 00:06:29 TVU24SCR01 systemd[1]: Failed to start docker.service - Docker Application Container Engine. ░░ Subject: A start job for unit docker.service has failed ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ A start job for unit docker.service has finished with a failure. ░░ ░░ The job identifier is 999785 and the job result is failed. Dec 05 00:07:18 TVU24SCR01 systemd[1]: docker.service: Start request repeated too quickly. Dec 05 00:07:18 TVU24SCR01 systemd[1]: docker.service: Failed with result 'exit-code'. ░░ Subject: Unit failed ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ The unit docker.service has entered the 'failed' state with result 'exit-code'. Dec 05 00:07:18 TVU24SCR01 systemd[1]: Failed to start docker.service - Docker Application Container Engine. ░░ Subject: A start job for unit docker.service has failed ░░ Defined-By: systemd ░░ Support: http://www.ubuntu.com/support ░░ ░░ A start job for unit docker.service has finished with a failure. ░░ ░░ The job identifier is 1000007 and the job result is failed.
最新发布
12-06
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值