2016-06-13 22:57:19 -04:00
|
|
|
# node promote
|
|
|
|
|
2023-01-06 13:04:05 -05:00
|
|
|
<!---MARKER_GEN_START-->
|
2016-07-29 13:41:52 -04:00
|
|
|
Promote one or more nodes to manager in the swarm
|
2016-07-07 14:43:18 -04:00
|
|
|
|
2023-01-06 13:04:05 -05:00
|
|
|
|
|
|
|
<!---MARKER_GEN_END-->
|
2016-06-13 22:57:19 -04:00
|
|
|
|
2017-02-07 18:42:48 -05:00
|
|
|
## Description
|
2016-06-13 22:57:19 -04:00
|
|
|
|
2018-12-16 22:57:44 -05:00
|
|
|
Promotes a node to manager. This command can only be executed on a manager node.
|
2017-02-07 18:42:48 -05:00
|
|
|
|
2024-08-16 05:02:10 -04:00
|
|
|
> [!NOTE]
|
2020-04-19 11:08:37 -04:00
|
|
|
> 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-06-13 22:57:19 -04:00
|
|
|
|
2021-08-21 08:54:14 -04:00
|
|
|
```console
|
2016-06-13 22:57:19 -04:00
|
|
|
$ docker node promote <node name>
|
|
|
|
```
|
|
|
|
|
2017-02-07 18:42:48 -05:00
|
|
|
## Related commands
|
2016-06-13 22:57:19 -04:00
|
|
|
|
|
|
|
* [node demote](node_demote.md)
|
2016-12-13 09:15:08 -05:00
|
|
|
* [node inspect](node_inspect.md)
|
|
|
|
* [node ls](node_ls.md)
|
|
|
|
* [node ps](node_ps.md)
|
|
|
|
* [node rm](node_rm.md)
|
|
|
|
* [node update](node_update.md)
|