2016-02-25 18:05:03
墨子
|
环境信息:
[root@joinApp2 ~]# uname -r
3.10.0-123.9.3.el7.x86_64
[root@joinApp2 ~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
症状:
[root@joinApp2 ~]# systemctl start docker.service
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
[root@joinApp2 ~]#
[root@joinApp2 ~]#
[root@joinApp2 ~]#
[root@joinApp2 ~]# 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 Thu 2016-02-25 17:26:11 CST; 16s ago
Docs:
http://docs.docker.com Process: 16384 ExecStart=/usr/bin/docker daemon $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY (code=exited, status=1/FAILURE)
Main PID: 16384 (code=exited, status=1/FAILURE)
Feb 25 17:26:10 joinApp2 systemd[1]: Failed to start Docker Application Container Engine.
Feb 25 17:26:10 joinApp2 systemd[1]: Unit docker.service entered failed state.
Feb 25 17:26:10 joinApp2 systemd[1]: docker.service failed.
Feb 25 17:26:11 joinApp2 systemd[1]: docker.service holdoff time over, scheduling restart.
Feb 25 17:26:11 joinApp2 systemd[1]: start request repeated too quickly for docker.service
Feb 25 17:26:11 joinApp2 systemd[1]: Failed to start Docker Application Container Engine.
Feb 25 17:26:11 joinApp2 systemd[1]: Unit docker.service entered failed state.
Feb 25 17:26:11 joinApp2 systemd[1]: docker.service failed.
|
warnerwu
|
这个可以通过如下方式解决: 查看文件系统 /etc/docker/daemon.json 有没有这个文件,没有测创建它包括二级目录 docker 在daemon.json文件中输入以下内容:
{
"storage-driver"
:
"devicemapper"
}
如果daemon.json
文件包含格式不正确的JSON,
Docker将无法启动
。
|
warnerwu 最后编辑, 2017-06-11 17:01:24
侯
|
我本地也是遇到这个问题,是因为按照DaoCloud执行了一下
curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://*******.m.daocloud.io 语句,然后 在这个文件中的/etc/docker/daemon.json 格式就变了{"registry-mirrors": ["http://****.m.daocloud.io"],} 最后一个多了一个逗号,我猜测是这个shell语句的原因,我把逗号去掉以后,程序可以正常启动。
|
问天涯
|
厉害了,我的哥 我也是执行daocloud的那行命令就出错了
原帖由 侯 于 2017-07-20 16:10:29 发表
我本地也是遇到这个问题,是因为按照DaoCloud执行了一下
curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://*******.m.daocloud.io 语句,然后 在这个文件中的/etc/docker/daemon.json 格式就变了{"registry-mirrors": ["http://****.m.daocloud.io"],} 最后一个多了一个逗号,我猜测是这个shell语句的原因,我把逗号去掉以后,程序可以正常启动。 |
田雨乐
|
vi /etc/sysconfig/selinux 把selinux后面的改为disabled,重启一波机器,再重启docker就可以了 |
田雨乐 最后编辑, 2018-05-18 08:27:51
