我按照installation guide for Ubuntu 12.04
中给出的所有步骤操作但是,它在启动docker
守护程序时失败了:
~ sudo docker -d
[sudo] password for prat0318:
2014/06/10 02:26:34 docker daemon: 1.0.0 63fe64c; execdriver: native; graphdriver:
[29daee74] +job initserver()
[29daee74.initserver()] Creating server
[29daee74] +job serveapi(unix:///var/run/docker.sock)
2014/06/10 02:26:34 Listening for HTTP on unix (/var/run/docker.sock)
Error running DeviceCreate (createPool) dm_task_run failed
[29daee74] -job initserver() = ERR (1)
2014/06/10 02:26:34 Error running DeviceCreate (createPool) dm_task_run failed
Ubuntu
版本(这是Digital Ocean Droplet):
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.4 LTS
Release: 12.04
Codename: precise
Linux Header版本:
apt-cache search linux-headers-$(uname -r)
linux-headers-3.8.0-38-generic - Linux kernel headers for version 3.8.0 on 64 bit x86 SMP
安装lxc-docker
时记录:
~ sudo apt-get install lxc-docker
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
aufs-tools cgroup-lite lxc-docker-1.0.0
The following NEW packages will be installed:
aufs-tools cgroup-lite lxc-docker lxc-docker-1.0.0
0 upgraded, 4 newly installed, 0 to remove and 94 not upgraded.
Need to get 4,509 kB of archives.
After this operation, 18.0 MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://get.docker.io/ubuntu/ docker/main lxc-docker-1.0.0 amd64 1.0.0 [4,404 kB]
Get:2 http://mirrors.digitalocean.com/ubuntu/ precise/universe aufs-tools amd64 1:3.0+20111101-1ubuntu1 [98.8 kB]
Get:3 http://get.docker.io/ubuntu/ docker/main lxc-docker amd64 1.0.0 [1,786 B]
Get:4 http://mirrors.digitalocean.com/ubuntu/ precise-updates/main cgroup-lite all 1.1.5 [4,098 B]
Fetched 4,509 kB in 0s (7,336 kB/s)
Selecting previously unselected package aufs-tools.
(Reading database ... 88672 files and directories currently installed.)
Unpacking aufs-tools (from .../aufs-tools_1%3a3.0+20111101-1ubuntu1_amd64.deb) ...
Selecting previously unselected package cgroup-lite.
Unpacking cgroup-lite (from .../cgroup-lite_1.1.5_all.deb) ...
Selecting previously unselected package lxc-docker-1.0.0.
Unpacking lxc-docker-1.0.0 (from .../lxc-docker-1.0.0_1.0.0_amd64.deb) ...
Selecting previously unselected package lxc-docker.
Unpacking lxc-docker (from .../lxc-docker_1.0.0_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up aufs-tools (1:3.0+20111101-1ubuntu1) ...
Setting up cgroup-lite (1.1.5) ...
cgroup-lite start/running
Setting up lxc-docker-1.0.0 (1.0.0) ...
docker start/running, process 15391
Setting up lxc-docker (1.0.0) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
我试图甚至从vps重新启动并注销/登录,但无济于事。
答案 0 :(得分:2)
您的Docker守护程序很可能已在运行。
检查守护程序服务是否正在运行:
thomas@tmp:~$ sudo service docker status
docker start/running, process 2593
请求Docker守护程序报告其版本:
thomas@tmp:~# sudo docker version
Client version: 1.0.0
Client API version: 1.12
Go version (client): go1.2.1
Git commit (client): 63fe64c
Server version: 1.0.0
Server API version: 1.12
Go version (server): go1.2.1
Git commit (server): 63fe64c
答案 1 :(得分:0)
更新:为了帮助那些仍然面临这个问题的人,我先前提交了a Github issue,对此进行了实质性的讨论。