2016-11-09 17:35:58 -05:00
|
|
|
# swarm unlock
|
|
|
|
|
2023-01-06 13:04:05 -05:00
|
|
|
<!---MARKER_GEN_START-->
|
2016-11-09 17:35:58 -05:00
|
|
|
Unlock swarm
|
|
|
|
|
2023-01-06 13:04:05 -05:00
|
|
|
|
|
|
|
<!---MARKER_GEN_END-->
|
2016-11-09 17:35:58 -05:00
|
|
|
|
2017-02-07 18:42:48 -05:00
|
|
|
## Description
|
|
|
|
|
2016-11-09 17:35:58 -05:00
|
|
|
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.
|
|
|
|
|
2020-04-19 11:08:37 -04:00
|
|
|
> **Note**
|
|
|
|
>
|
|
|
|
> This is a cluster management command, and must be executed on a swarm
|
|
|
|
> manager node. To learn about managers and workers, refer to the
|
|
|
|
> [Swarm mode section](https://docs.docker.com/engine/swarm/) in the
|
|
|
|
> documentation.
|
2018-12-23 06:27:52 -05:00
|
|
|
|
2017-02-07 18:42:48 -05:00
|
|
|
## Examples
|
2016-11-09 17:35:58 -05:00
|
|
|
|
2021-08-21 08:54:14 -04:00
|
|
|
```console
|
2016-11-09 17:35:58 -05:00
|
|
|
$ docker swarm unlock
|
2024-04-26 14:16:51 -04:00
|
|
|
Enter unlock key:
|
2016-11-09 17:35:58 -05:00
|
|
|
```
|
|
|
|
|
2017-02-07 18:42:48 -05:00
|
|
|
## Related commands
|
2016-11-09 17:35:58 -05:00
|
|
|
|
2017-05-10 18:34:56 -04:00
|
|
|
* [swarm ca](swarm_ca.md)
|
2016-11-09 17:35:58 -05:00
|
|
|
* [swarm init](swarm_init.md)
|
2016-12-19 12:55:51 -05:00
|
|
|
* [swarm join](swarm_join.md)
|
2020-04-19 09:43:08 -04:00
|
|
|
* [swarm join-token](swarm_join-token.md)
|
2016-12-19 12:55:51 -05:00
|
|
|
* [swarm leave](swarm_leave.md)
|
2020-04-19 09:43:08 -04:00
|
|
|
* [swarm unlock-key](swarm_unlock-key.md)
|
2016-11-09 17:35:58 -05:00
|
|
|
* [swarm update](swarm_update.md)
|