Change the autolock key in swarm docker

Rotate the autolock key in Swarm docker cluster

For change the existing key, you first must need to unlock the swarm with the existing key then you can change its key only:

root@Oracle1:/home/sunny/Desktop# docker swarm unlock

Please enter unlock key:

root@Oracle1:/home/sunny/Desktop# docker swarm unlock-key --rotate
Successfully rotated manager unlock key.
To unlock a swarm manager after it restarts, run the `docker swarm unlock`
command and provide the following key:
Please remember to store this key in a password manager, since without it you
will not be able to restart the manager.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.