Docker Community Forums

Share and learn in the Docker community.

Dock swarm on multiple host with VBox

docker

(Xi Shen) #1

I have two Windows machines, with Docker Toolbox installed. I want to configure swarm on both machine, so I get a cluster over the two VM instances.

I following the instructions on https://docs.docker.com/swarm/install-w-machine/, except the swarm-node is on another machine.

After everything settled, I did docker info, but I got:

Nodes: 2
 (unknown): 192.168.99.103:2376
  └ ID: 
  └ Status: Pending
  └ Containers: 0
  └ Reserved CPUs: 0 / 0
  └ Reserved Memory: 0 B / 0 B
  └ Labels: 
  └ UpdatedAt: 2016-11-11T08:46:22Z
  └ ServerVersion: 
 swarm-master: 192.168.99.102:2376
  └ ID: ROS2:EYZ7:BTNM:TI3H:CX25:SEMW:L5LN:FUAF:CVEB:2SRO:GWRA:TOOQ
  └ Status: Healthy
  └ Containers: 2 (2 Running, 0 Paused, 0 Stopped)
  └ Reserved CPUs: 0 / 1
  └ Reserved Memory: 0 B / 1.021 GiB
  └ Labels: kernelversion=4.4.27-boot2docker, operatingsystem=Boot2Docker 1.12.3 (TCL 7.2); HEAD : 7fc7575 - Thu Oct 27 17:23:17 UTC 2016, provider=virtualbox, storagedriver=aufs
  └ UpdatedAt: 2016-11-11T09:00:18Z
  └ ServerVersion: 1.12.3

The IP of the first entry is obviously wrong. It is the IP of the VM with respect to the VirtualBox. I think it would work if it is the IP of my host Windows machine. But I could not find a way to specify that address. I think it is the advertise address.