2016-06-13 22:57:19 -04:00
|
|
|
# node demote
|
|
|
|
|
2023-01-06 13:04:05 -05:00
|
|
|
<!---MARKER_GEN_START-->
|
2016-07-29 13:41:52 -04:00
|
|
|
Demote one or more nodes from 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-23 06:27:52 -05:00
|
|
|
Demotes an existing manager so that it is no longer a manager.
|
2017-02-07 18:42:48 -05:00
|
|
|
|
2020-04-19 11:08:37 -04:00
|
|
|
> **Note**
|
|
|
|
>
|
|
|
|
> This is a cluster management command, and must be executed on a swarm
|
2018-12-23 06:27:52 -05:00
|
|
|
> manager node. To learn about managers and workers, refer to the [Swarm mode
|
|
|
|
> section](https://docs.docker.com/engine/swarm/) in the documentation.
|
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 demote <node name>
|
|
|
|
```
|
|
|
|
|
2017-02-07 18:42:48 -05:00
|
|
|
## Related commands
|
2016-06-13 22:57:19 -04:00
|
|
|
|
2016-12-13 09:15:08 -05:00
|
|
|
* [node inspect](node_inspect.md)
|
|
|
|
* [node ls](node_ls.md)
|
2016-06-13 22:57:19 -04:00
|
|
|
* [node promote](node_promote.md)
|
2016-12-13 09:15:08 -05:00
|
|
|
* [node ps](node_ps.md)
|
|
|
|
* [node rm](node_rm.md)
|
|
|
|
* [node update](node_update.md)
|