docker daemon不会在vagrant vm(centos / ubuntu)上运行

时间:2015-02-19 13:25:46

标签: docker vagrant

在尝试运行docker daemon(docker -d)时,它只是卡住了,我在带有centos和ubuntu的流浪盒上试过这个。

 docker -d
INFO[0000] +job serveapi(unix:///var/run/docker.sock)   
INFO[0000] Listening for HTTP on unix (/var/run/docker.sock) 
WARN[0000] WARNING: Udev sync is not supported. This will lead to unexpected behavior, data loss and errors 
INFO[0000] +job init_networkdriver() 
INFO[0000] -job init_networkdriver() = OK (0)           
INFO[0000] WARNING: mountpoint for memory not found

INFO[0000] Loading containers: start.                   

INFO[0000] Loading containers: done.                    
INFO[0000] docker daemon: 1.5.0 a8a31ef; execdriver: native-0.2; graphdriver: devicemapper 
INFO[0000] +job acceptconnections()                     
INFO[0000] -job acceptconnections() = OK (0)     

有关问题的建议吗?

1 个答案:

答案 0 :(得分:0)

sudo docker info是否显示您正在使用devicemapper存储驱动程序? Ubuntu目前在devicemapper上存在一个错误:https://github.com/docker/docker/issues/10705

尝试安装aufs并重启docker。如果可用,Docker将默认使用aufs。 https://docs.docker.com/installation/ubuntulinux/#dependencies_1

这是我的输出显示aufs:

vagrant@controller:~$ sudo docker info
Containers: 0
Images: 23
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 24
Execution Driver: native-0.2
Kernel Version: 3.13.0-46-generic
Operating System: Ubuntu 14.04.2 LTS
CPUs: 4
Total Memory: 3.86 GiB
Name: controller
ID: MBSR:QUKL:5TJK:B74D:IV6N:XQMM:FLRE:WWRC:RIMG:NDX6:M6ES:XKLJ
WARNING: No swap limit support