我正在尝试使用 docker swarm 引擎并遵循官方文档创建容器集群:https ://docs.docker.com/swarm/install-w-machine/ 。但遗憾的是直到现在都没有成功。
在文档获取有关 swarm 的信息的步骤中,只显示了两个容器(来自 swarm-master 的容器)而不是四个。这是我得到的输出:
$ docker info
Containers: 2
Images: 7
Storage Driver: aufs
Root Dir: /mnt/sda1/var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 11
Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.0.5-boot2docker
Operating System: Boot2Docker 1.7.0 (TCL 6.3); master : 7960f90 - Thu Jun 18 18:31:45 UTC 2015
CPUs: 1
Total Memory: 996.2 MiB
Name: swarm-master
ID: M4Z4:6ZBE:LV53:NHS3:7CT6:HNWM:GLQ4:5WPY:3CZR:HVAZ:GPP2:G7I3
Debug mode (server): true
File Descriptors: 20
Goroutines: 33
System Time: 2015-06-29T15:36:40.543771252Z
EventsListeners: 0
Init SHA1:
Init Path: /usr/local/bin/docker
Docker Root Dir: /mnt/sda1/var/lib/docker
Labels:
provider=virtualbox
当前的 docker 机器有:
$ docker-machine ls
local virtualbox Running tcp://192.168.99.100:2376
swarm-agent-00 virtualbox Running tcp://192.168.99.102:2376 swarm-master
swarm-agent-01 virtualbox Running tcp://192.168.99.103:2376 swarm-master
swarm-master * virtualbox Running tcp://192.168.99.101:2376 swarm-master (master)
是否有可能调试 swarm 机器以找到最终的错误配置?