On the manager i ran the following command:
alpine:~# docker swarm join-token managerAnd on the node:
To add a manager to this swarm, run the following command:
docker swarm join --token SWMTKN-1-3b7f69d3wgty0u68oab8724z07fkyvgc0w8j37ng1l7jsmbghl-5nrni6ksqnkljvqpp59m5gfh1 192.168.178.46:2377
node03:~# docker swarm join --token SWMTKN-1-3b7f69d3wgty0u68oab8724z07fkyvgc0w8j37ng1The new state of the cluster shows:
l7jsmbghl-5nrni6ksqnkljvqpp59m5gfh1 192.168.178.46:2377
This node joined a swarm as a manager.
alpine:~# docker info | grep -A 23 SwarmIf you want to use a new token just run:
Swarm: active
NodeID: wy1z8jxmr1cyupdqgkm6lxhe2
Is Manager: true
ClusterID: wkbjyxbcuohgdqc3amhl9umlq
Managers: 2
Nodes: 4
Orchestration:
Task History Retention Limit: 5
Raft:
Snapshot Interval: 10000
Number of Old Snapshots to Retain: 0
Heartbeat Tick: 1
Election Tick: 3
Dispatcher:
Heartbeat Period: 5 seconds
CA Configuration:
Expiry Duration: 3 months
Force Rotate: 0
Autolock Managers: false
Root Rotation In Progress: false
Node Address: 192.168.178.46
Manager Addresses:
192.168.178.46:2377
192.168.178.50:2377
alpine:~# docker swarm join-token --rotate manager
Successfully rotated manager join token.
To add a manager to this swarm, run the following command:
docker swarm join --token SWMTKN-1-3b7f69d3wgty0u68oab8724z07fkyvgc0w8j37ng1l7jsmbghl-cgy143mwghbfoozt0b8li2587 192.168.178.46:2377
Related posts:
- Docker on Ubuntu
- Running through a tutorial / investigating the processes
- Creating a small linux for my docker cluster (Alpine Linux)
- How to build a docker swarm
- Creating a minimal webserver container and deploying it to docker swarm
- Setting up a tomcat with docker
- Running a swarm with multiple managers
- Mysql inside a docker container - persistency with docker volumes
- How to change the configuration of a standard docker container(e.g. changing tomcats memory settings)
Pretty nice post. I just stumbled upon your weblog and wished to say that I have truly enjoyed surfing around your blokg posts.
ReplyDeleteIn any case I'll be subscribing to your feed and I hope you write again very soon!