小菜鸟
分类: 虚拟化
2016-03-15 09:13:01
Question 1:
1
2
|
root@cloudsoar-virtual-machine:~# docker info
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
|
原因是Docker安装后,docker daemon 没有自动启动,手动启动便看到信息了
我这里使用命令:docker -d 启动后,再使用docker info 便可以了。
手动启动 docker deamon
1
2
3
4
5
6
7
8
9
10
11
12
|
root@cloudsoar-virtual-machine:/home/cloudsoar# docker -d
Warning: '-d' is deprecated, it will be removed soon. See usage.
WARN[0000] please use 'docker daemon' instead.
INFO[0000] API listen on /var/run/docker.sock
INFO[0000] [graphdriver] using prior storage driver "aufs"
INFO[0000] Firewalld running: false
INFO[0000] Default bridge (docker0) is assigned with an IP address 172.17.0.1/16. Daemon option --bip can be used to set a preferred IP address
WARN[0000] Your kernel does not support swap memory limit.
INFO[0000] Loading containers: start.
INFO[0000] Loading containers: done.
INFO[0000] Daemon has completed initialization
INFO[0000] Docker daemon commit=a34a1d5 execdriver=native-0.2 graphdriver=aufs version=1.9.1
|
Question 2:
1
2
3
4
5
|
root@cloudsoar-virtual-machine:~# status docker
status:未知任务: docker
root@cloudsoar-virtual-machine:~# ps -ef | grep docker
root 21788 1 0 19:48 ? 00:00:00/usr/bin/dockerdaemon -H fd://
root 21884 18851 0 19:53 pts/1 00:00:00grep--color=auto docker
|
这个还没找到原因。