记一次安装docker报错的解决

用的是debian系统,安装了好几次都是启动失败,无论是在线安装,还是离线安装,还是失败。已经找到另一台服务器(centos系统),已经轻易就安装成功了。后来还是不死心,再在网上不断资料,后来发现原来是安装了防火墙firewalld所致,关闭了firewalld后就正常。

安装失败时的报错信息如下:

Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.
Sep 06 14:30:13 debian systemd[1]: Failed to start Docker Application Container Engine.
-- Subject: A start job for unit docker.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- A start job for unit docker.service has finished with a failure.
-- 
-- The job identifier is 42059 and the job result is failed.
Sep 06 14:30:15 debian systemd[1]: docker.service: Service RestartSec=2s expired, scheduling restart.
Sep 06 14:30:15 debian 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: https://www.debian.org/support
-- 
-- Automatic restarting of the unit docker.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Sep 06 14:30:15 debian systemd[1]: Stopped Docker Application Container Engine.
-- Subject: A stop job for unit docker.service has finished
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- A stop job for unit docker.service has finished.
-- 
-- The job identifier is 42129 and the job result is done.
Sep 06 14:30:15 debian systemd[1]: docker.service: Start request repeated too quickly.
Sep 06 14:30:15 debian systemd[1]: docker.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- The unit docker.service has entered the 'failed' state with result 'exit-code'.

解决方法:

systemctl stop firewalld

然后重启:systemctl restart docker

 

 参考了此文章解决的:https://www.cnblogs.com/ming369/p/10890562.html

上文的防火墙虽然与我的不一样,但给了我解决的思路

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值