-
Notifications
You must be signed in to change notification settings - Fork 3
Host Setup
My setup consists of three Windows 10 Hosts, which all have VirtualBox installed. Within VirtualBox, one virtual machine with Debian(jessie) is running on each host.
Distributor ID: Debian
Description: Debian GNU/Linux 8.8 (jessie)
Release: 8.8
Codename: jessie
I tried to start the whole project in the Windows 10 Host environment, but Docker Swarm was/is not available for Windows and Mac installations.
Currently, you cannot use Docker for Mac or Windows alone to test a multi-node swarm. https://docs.docker.com/engine/swarm/swarm-tutorial/#use-docker-for-mac-or-docker-for-windows
I installed Docker as explained here using version 17.06.0-ce
> docker version
Client:
Version: 17.06.0-ce
API version: 1.30
Go version: go1.8.3
Git commit: 02c1d87
Built: Fri Jun 23 21:20:04 2017
OS/Arch: linux/amd64
Server:
Version: 17.06.0-ce
API version: 1.30 (minimum version 1.12)
Go version: go1.8.3
Git commit: 02c1d87
Built: Fri Jun 23 21:18:59 2017
OS/Arch: linux/amd64
Experimental: false
It is very important that all your nodes (VMs) can reach each other over the network. Because in this step the docker swarm get initialized. Therefore, you need to choose a "leader" node and type in following command:
docker swarm init
Easy as that! Now you will get something like this:
To add a worker to this swarm, run the following command:
docker swarm join --token SWMTKN-XXXXXXX <ip>:2377
Now go to your other nodes and copy the command above into the command line and press ENTER.
If you need more support just read this.