Update cheatsheets

This commit is contained in:
ivuorinen
2024-11-14 00:17:13 +00:00
parent f44f773768
commit a64ce083c4
3 changed files with 39 additions and 2 deletions

37
tldr/docker-node Normal file
View 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}}`

View File

@@ -5,7 +5,7 @@ source: https://github.com/tldr-pages/tldr.git
---
# 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`.
> More information: <https://www.speedtest.net/apps/cli>.

View File

@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
# speedtest-cli
> 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>.
- Run a speed test: