代码学堂(uxuew.cn)提供付费解决PHP WEB开发等技术服务,如果需要请 点击加我QQ:1662935793.
>网站运维 > linux系统 > linux(centos)系统安装docker启动失败解决方案

linux(centos)系统安装docker启动失败解决方案

linux系统 围观2110次 更新日期:2018-03-23 17:44:48 留下足迹

linux安装docker后无法启动,报错信息如下:
[root@test ~]# yum install docker

[root@test ~]# service docker start

Redirecting to /bin/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@test ~]# systemctl status docker.service

● docker.service - Docker Application Container Engine

   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)

   Active: inactive (dead) (Result: exit-code) since 四 2016-03-10 13:01:21 CST; 7s ago

     Docs: http://docs.docker.com

  Process: 29939 ExecStart=/usr/bin/docker daemon $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY (code=exited, status=2)

 Main PID: 29939 (code=exited, status=2)

   CGroup: /system.slice/docker.service

           └─29970 mkfs.ext4 -E nodiscard,lazy_itable_init=0,lazy_journal_ini...

 

3月 10 13:01:20 test.mayocase.com systemd[1]: Failed to start Docker Applic....

3月 10 13:01:20 test.mayocase.com systemd[1]: Unit docker.service entered f....

3月 10 13:01:20 test.mayocase.com systemd[1]: docker.service failed.

3月 10 13:01:21 test.mayocase.com systemd[1]: docker.service holdoff time o....

Hint: Some lines were ellipsized, use -l to show in full.
解决方案:

1、卸载dcker
[root@apptest ~]# yum remove docker
[root@apptest ~]# yum remove docker-selinux
2、添加一个docker的yum源
[root@test yum.repos.d]# vi  /etc/yum.repos.d/docker.repo
 
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/7/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
3、安装docker-engine
[root@test yum.repos.d]# yum install docker-engine

转载请注明:代码学堂>网站运维 > linux系统 > linux(centos)系统安装docker启动失败解决方案

喜欢 (476) or 分享 (202)