Skip to content
This repository was archived by the owner on Jun 27, 2020. It is now read-only.

Host Setup

Philipp Wakonigg edited this page Mar 24, 2018 · 2 revisions

The test setup for this repo included three Windows 10 Host machines with VirtualBox installed. On every Windows 10 Host one virtual machine with Debian Jessie 8.8 was used to install Docker. In the first approach Docker was installed on the Windows Host environment, but further steps including the initialization of the swarm mode were not possible, because the current version od Docker does not feature a multi-node swarm.

Currently, you cannot use Docker for Mac or Docker for Windows alone to test a multi-node swarm. ref

Hosts running Docker

Distributor ID:	Debian
Description:	Debian GNU/Linux 8.8 (jessie)
Release:	8.8
Codename:	jessie

This is very important because the NFS container may fail if your host system is based on ubuntu. I need to make further research why this happens but I can guarantee it works with Debian.

Docker Version

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

Swarm mode initialization

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.