docker重启后启动失败Failed to start Docker Application Container Engine.
刚刚弄了docker重启了一下,本来启动得好好的,重启系统后就不行了
一直给我报错
最开始是这样的
[root@server run]# systemctl status docker
● docker.service - Docker Application Container EngineLoaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)Active: failed (Result: exit-code) since Thu 2017-12-14 10:56:34 EST; 2min 38s agoDocs: http://docs.docker.comProcess: 10755 ExecStart=/usr/bin/docker-current daemon --exec-opt native.cgroupdriver=systemd $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY (code=exited, status=1/FAILURE)Main PID: 10755 (code=exited, status=1/FAILURE)Dec 14 10:56:33 server systemd[1]: Starting Docker Application Container Engine...
Dec 14 10:56:33 server docker-current[10755]: time="2017-12-14T10:56:33.627099954-05:00" level=warning msg="devmapper: Usage of loopback devices is strongly discou...v section."
Dec 14 10:56:33 server docker-current[10755]: time="2017-12-14T10:56:33.643888204-05:00" level=info msg="devmapper: Creating filesystem xfs on device docker-253:0-...61896-base"
Dec 14 10:56:34 server docker-current[10755]: time="2017-12-14T10:56:34.163161282-05:00" level=info msg="devmapper: Successfully created filesystem xfs on device d...61896-base"
Dec 14 10:56:34 server docker-current[10755]: time="2017-12-14T10:56:34.290819345-05:00" level=warning msg="Docker could not enable SELinux on the host system"
Dec 14 10:56:34 server docker-current[10755]: time="2017-12-14T10:56:34.325390849-05:00" level=fatal msg="Error starting daemon: Error loading key file /etc/docker...ON input\n"
Dec 14 10:56:34 server systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Dec 14 10:56:34 server systemd[1]: Failed to start Docker Application Container Engine.
Dec 14 10:56:34 server systemd[1]: Unit docker.service entered failed state.
Dec 14 10:56:34 server systemd[1]: docker.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
给我提示 msg="Error starting daemon: Error loading key file /etc/docker...ON input\n"
我开始也没有在意,一直在用网上的方法试什么删除/var/run/docker.sock,或者是删除rm -rf /var/lib/docker/
最着不住的是居然看见有人说再重启系统后就能成功,简直是。。。。可怕!!
当然以上都没有成功。。。
然后报错信息突然变了
[root@server ~]# systemctl status docker
● docker.service - Docker Application Container EngineLoaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)Active: failed (Result: exit-code) since Thu 2017-12-14 11:10:24 EST; 36s agoDocs: http://docs.docker.comProcess: 2403 ExecStart=/usr/bin/docker-current daemon --exec-opt native.cgroupdriver=systemd $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY (code=exited, status=1/FAILURE)Main PID: 2403 (code=exited, status=1/FAILURE)Dec 14 11:10:24 server systemd[1]: Starting Docker Application Container Engine...
Dec 14 11:10:24 server docker-current[2403]: time="2017-12-14T11:10:24.532194806-05:00" level=warning msg="devmapper: Usage of loopback devices is strongly discouraged for production use. Plea...ldev section."
Dec 14 11:10:24 server docker-current[2403]: time="2017-12-14T11:10:24.547180234-05:00" level=warning msg="devmapper: Base device already exists and has filesystem xfs on it. User specified fi...l be ignored."
Dec 14 11:10:24 server docker-current[2403]: time="2017-12-14T11:10:24.554895833-05:00" level=info msg="[graphdriver] using prior storage driver \"devicemapper\""
Dec 14 11:10:24 server docker-current[2403]: time="2017-12-14T11:10:24.555289136-05:00" level=warning msg="Docker could not enable SELinux on the host system"
Dec 14 11:10:24 server docker-current[2403]: time="2017-12-14T11:10:24.885244154-05:00" level=fatal msg="Error starting daemon: Error loading key file /etc/docker/key.json: unable to decode pr... JSON input\n"
Dec 14 11:10:24 server systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Dec 14 11:10:24 server systemd[1]: Failed to start Docker Application Container Engine.
Dec 14 11:10:24 server systemd[1]: Unit docker.service entered failed state.
Dec 14 11:10:24 server systemd[1]: docker.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
level=fatal msg="Error starting daemon: Error loading key file /etc/docker/key.json: unable to decode pr... JSON input\n"
我去这次显示得如此清楚,以前的那个我就没有注意看。。。
解决方法:当然是删除key.json
[root@registry run]# rm /etc/docker/key.json
rm: remove regular empty file ‘/etc/docker/key.json’? y
[root@registry run]# systemctl start docker.service
本来我以为我写完了,然后我发现我另外几台删了也启动不了。。。
请把rm -rf /var/lib/docker/一并删除
[root@client1 ~]# rm /etc/docker/key.json
rm: remove regular empty file ‘/etc/docker/key.json’? y
[root@client1 ~]# systemctl restart 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@client1 ~]# rm -rf /var/lib/docker/
[root@client1 ~]# systemctl restart docker
解决问题,看来以后得多注意下细节
docker重启后启动失败Failed to start Docker Application Container Engine.相关推荐
- docker安装后启动失败
docker官网安装地址 Install Docker Engine on CentOS | Docker Documentation #卸载旧的版本 yum remove -y docker \ d ...
- docker启动失败Failed to start Docker Application Container Engine.(centos7)
重启服务器没关docker,也没设置开机自启动,然后docker启动报错 通过systemctl status docker.service 查看找了半天没找着问题所在 继续执行journalctl ...
- Docker启动失败Failed to start Docker Application Container Engine
第一 检查 /etc/docker/daemon.json 文件 可以先把之前的daemon.json备份,然后vim /etc/docker/daemon.json { "reg ...
- Docker启动失败报错Failed to start Docker Application Container Engine解决方案
在给一台腾讯云机器安装docker后发现无法启动,总是报错Failed to start Docker Application Container Engine,解决思路分享一下,以免各位童鞋踩坑. ...
- docker启动报错:Failed to start Docker Application Container Engine
今天docker启动报错: 4月 20 20:52:26 localhost.localdomain systemd[1]: Failed to start Docker Application Co ...
- docker启动报错:Failed to start Docker Application Container Engine.
今天docker启动报错: 4月 20 20:52:26 localhost.localdomain systemd[1]: Failed to start Docker Application Co ...
- MariaDB 修改存储路径后启动失败问题解决
MariaDB 修改存储路径后启动失败问题解决 参考文章: (1)MariaDB 修改存储路径后启动失败问题解决 (2)https://www.cnblogs.com/dizhiyaochang/p/ ...
- SpringBoot 启动失败 Failed to determine a suitable driver class 问题解决方案
SpringBoot 启动失败 Failed to determine a suitable driver class 问题解决方案 参考文章: (1)SpringBoot 启动失败 Failed t ...
- 普元 AppServer 6.5 哑安装后执行启动命令./startup.sh后启动失败
[问题] AppServer 6.5 哑安装后执行启动命令后启动失败,见下图: [解答] 原因:执行启动命令时,直接在安装包:Primeton_AppServer_6.5_Enterprise_Edi ...
最新文章
- 一笔画问题 (DFS或并查集)
- 2014/08/13 – Backbonejs
- key可以重复的map集合:IdentityHashMap
- “隐私快递单”的保护理念应全面推行
- 七牛云音视频新功能:音频支持AAC_HE
- 签名算法sha256withrsa,RSA数字证书公钥私钥生成,base64转码和文件日志
- PHP收费事件导致用户流失,PHP秒杀系统方案(解决大流量,高并发)
- 教你一行代码解决 Git报错 fatal refusing to merge unrelated histories
- Ubuntu下怎么通过命令完成蓝牙的配对和连接
- docker学习之ssh连接
- 五笔字根表识别码图_五笔字根表(附键盘图)
- plt.rcParams[‘font.sans-serif‘] = [‘SimHei‘] 和plt.rcParams[‘axes.unicode_minus‘] = False
- Win10保护眼睛豆沙绿背景
- xp系统计算机远程桌面连接不上,在XP系统中远程桌面连接不上的解决方式
- 游戏策划笔记:记忆点的构造
- 关于Iphone 4 如何用itunes备份短信等设置
- 记住熊三木,一场关于文创产业“复兴十年” 的豪赌
- 《数学之美》——吴军#读书笔记
- javaweb基于JSP+Servlet开发水费管理系统+论文 大作业 毕业设计
- 民远学院99届计算机,上海民远职业技术学院计算机基础复习题及参考答案-D套...