docker swarm unlockEstimated reading time: 1 minute
Edge only: This is the CLI reference for Docker CE Edge versions. Some of these options may not be available to Docker CE stable or Docker EE. You can view the stable version of this CLI reference or learn about Docker CE Edge.
The client and daemon API must both be at least
to use this command. Use the
docker version command on the client to check
your client and daemon API versions.
docker swarm unlock
|docker swarm||Manage Swarm|
|docker swarm ca||Display and rotate the root CA|
|docker swarm init||Initialize a swarm|
|docker swarm join||Join a swarm as a node and/or manager|
|docker swarm join-token||Manage join tokens|
|docker swarm leave||Leave the swarm|
|docker swarm unlock||Unlock swarm|
|docker swarm unlock-key||Manage the unlock key|
|docker swarm update||Update the swarm|
Unlocks a locked manager using a user-supplied unlock key. This command must be
used to reactivate a manager after its Docker daemon restarts if the autolock
setting is turned on. The unlock key is printed at the time when autolock is
enabled, and is also available from the
docker swarm unlock-key command.
$ docker swarm unlock Please enter unlock key: