mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-12 18:59:06 +00:00
Update cheatsheets
This commit is contained in:
37
tldr/docker-node
Normal file
37
tldr/docker-node
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
---
|
||||||
|
syntax: markdown
|
||||||
|
tags: [tldr, common]
|
||||||
|
source: https://github.com/tldr-pages/tldr.git
|
||||||
|
---
|
||||||
|
# docker node
|
||||||
|
|
||||||
|
> Manage Docker Swarm nodes.
|
||||||
|
> More information: <https://docs.docker.com/reference/cli/docker/node/>.
|
||||||
|
|
||||||
|
- List nodes in the swarm:
|
||||||
|
|
||||||
|
`docker node ls`
|
||||||
|
|
||||||
|
- List tasks running on one or more nodes, defaults to the current node:
|
||||||
|
|
||||||
|
`docker node ps {{node1 node2 node3 ...}}`
|
||||||
|
|
||||||
|
- Display detailed information on one or more nodes:
|
||||||
|
|
||||||
|
`docker node inspect {{node1 node2 node3 ...}}`
|
||||||
|
|
||||||
|
- Promote one or more nodes to manager in the swarm:
|
||||||
|
|
||||||
|
`docker node promote {{node1 node2 node3 ...}}`
|
||||||
|
|
||||||
|
- Demote one or more nodes from manager in the swarm:
|
||||||
|
|
||||||
|
`docker node demote {{node1 node2 node3 ...}}`
|
||||||
|
|
||||||
|
- Remove one or more nodes from the swarm:
|
||||||
|
|
||||||
|
`docker node rm {{node1 node2 node3 ...}}`
|
||||||
|
|
||||||
|
- Update metadata about a node, such as its availability, labels, or roles:
|
||||||
|
|
||||||
|
`docker node update --{{availability|role|label-add|...}} {{active|worker|foo|...}} {{node1}}`
|
||||||
@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
---
|
---
|
||||||
# speedtest
|
# speedtest
|
||||||
|
|
||||||
> Official command-line interface for testing internet bandwidth using https://speedtest.net.
|
> Official command-line interface for testing internet bandwidth using <https://speedtest.net>.
|
||||||
> Note: some platforms link `speedtest` to `speedtest-cli`. If some of the examples in this page don't work, see `speedtest-cli`.
|
> Note: some platforms link `speedtest` to `speedtest-cli`. If some of the examples in this page don't work, see `speedtest-cli`.
|
||||||
> More information: <https://www.speedtest.net/apps/cli>.
|
> More information: <https://www.speedtest.net/apps/cli>.
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
|||||||
# speedtest-cli
|
# speedtest-cli
|
||||||
|
|
||||||
> Test internet bandwidth using <https://speedtest.net>.
|
> Test internet bandwidth using <https://speedtest.net>.
|
||||||
> See also `speedtest` for the official CLI.
|
> See also: `speedtest` for the official CLI.
|
||||||
> More information: <https://github.com/sivel/speedtest-cli>.
|
> More information: <https://github.com/sivel/speedtest-cli>.
|
||||||
|
|
||||||
- Run a speed test:
|
- Run a speed test:
|
||||||
|
|||||||
Reference in New Issue
Block a user