Docker Swarm

Straight to the point when creating a docker swarm, assume the internal network space is 192.168.1.0/24 . This will create the swarm

#docker swarm init —advertise-addr 192.168.1.134:2377 —listen-addr 192.168.1.134:2377

On the secondary node that will act as a worker, lets just refer it as worker-node

#docker swarm join —token SWMTKN-1-xxxxxxxxxx-192.168.1.134:2377

In order to join a manager

#docker swarm join-token manager 

Leave a Reply

RELATED POST

Virtual Machine Manager: Error starting domain

Starting up the KVM error occurred Error starting domain: Requested operation is not valid: network 'default' is not active Locate…

Git Commands

How to initialize a Git repo: Everything starts from here. The first step is to initialize a new Git repo…

Lab Hack: Raspberry Pi running VMWare ESXi

As strange as the title sounds, yes I am running VMWare ESXi on a Raspberry Pi 4 Model B (4GB)…

Lab Hack: Ubuntu openssh-server and passwordless authentication

While setting up the lab for a docker swarm training module I decided to spin up a few vms in…