Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 1.12 KB

13-setting-up-docker-swarm-cluster.md

File metadata and controls

51 lines (35 loc) · 1.12 KB

Setting Up Docker Swarm Cluster

How to do a Raspberry Pi 3 Model B+ Docker Swarm Cluster setup

Prerequisite(s):

1 - Make Sure Docker is Working Correctly on Manager Pi


pi@swarm-manager:~ $ sudo docker info

2 - Initialise Docker Swarm (Manager)


pi@swarm-manager:~ $ sudo docker swarm init

Note: above command gives you token to connect swarm worker with swarm manager docker swarm join --token TOKEN IP-ADDRESS:2377


3 - Join Docker Swarm (Worker)


a) Make Sure Docker is Working Correctly on Worker Pi (if not install Docker)
pi@swarm-worker:~ $ sudo docker info
b) Join Worker Pi with Manager Pi
pi@swarm-worker:~ $ sudo docker swarm join --token TOKEN IP-ADDRESS:2377
c) To Retrieve Join Token on Manager Pi
pi@swarm-manager:~ $ sudo docker swarm join-token worker

4 - Confirm All Swarm Worker Pis are Joined with Docker Swarm Manager

pi@swarm-manager:~ $ sudo docker node ls