Skip to content

Locking & unlocking Swarm cluster

AJ NOURI edited this page Feb 6, 2018 · 1 revision

Q1- Using your 3-node swarm cluster previously configured, remove all services.

Q2- On the manager node, update your cluster by enabling locking.

Q3- Test the locking feature: stop and restart docker service on the manager node and try to list your swarm cluster nodes. Unlock it using the key previously generated.

Q4- Disable the key without removing the feature.

Q5- Now, remove the lock completely.

Q6- Lock the swarm cluster again.

Q7- (Open question) Build a script to extract the locking key and save into a file with date (ex: filename= sawrmlock-day-month-year-keynbr).

  • Make sure to always have 2 keys, the current and the previous.