[docker in docker]使用docker起一个Centos7.2容器 容器中再安装docker 但docker服务起不来

zhang_gq 发布于 2016/03/30 15:02
阅读 3K+
收藏 2

Serverless 架构就不要服务器了?>>>

物理服务器上安装docker,版本如下:

# docker version
Client:
 Version:      1.8.2-el7.centos
 API version:  1.20
 Package Version: docker-1.8.2-10.el7.centos.x86_64
 Go version:   go1.4.2
 Git commit:   a01dc02/1.8.2
 Built:        
 OS/Arch:      linux/amd64


Server:
 Version:      1.8.2-el7.centos
 API version:  1.20
 Package Version: 
 Go version:   go1.4.2
 Git commit:   a01dc02/1.8.2
 Built:        
 OS/Arch:      linux/amd64

然后使用docker起一个Centos7.2容器,容器中再安装docker,之后发现docker服务起不来,日志如下,有没有大神知道目前的docker in docker能直接这样起么?

[root@centosVm /]# 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@centosVm /]# systemctl status docker.service
鈼[0m docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2016-03-30 06:56:35 UTC; 5s ago
     Docs: https://docs.docker.com
  Process: 640 ExecStart=/usr/bin/docker daemon -H fd:// (code=exited, status=1/FAILURE)
 Main PID: 640 (code=exited, status=1/FAILURE)


Mar 30 06:56:35 centosVm systemd[1]: Starting Docker Application Container Engine...
Mar 30 06:56:35 centosVm docker[640]: time="2016-03-30T06:56:35.540047914Z" level=error msg="There are no more loopback devices available."
Mar 30 06:56:35 centosVm docker[640]: time="2016-03-30T06:56:35.540146963Z" level=fatal msg="Error starting daemon: error initializing ... failed"
Mar 30 06:56:35 centosVm systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Mar 30 06:56:35 centosVm systemd[1]: Failed to start Docker Application Container Engine.
Mar 30 06:56:35 centosVm systemd[1]: Unit docker.service entered failed state.
Mar 30 06:56:35 centosVm systemd[1]: docker.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

加载中
0
Feng_Yu
Feng_Yu
印象中这种功能好像在4.3以上的内核版本才能支持
返回顶部
顶部