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