Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-18 00:18:35 +00:00
parent 9cdd033c95
commit a9720510d1
43 changed files with 362 additions and 132 deletions

View File

@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
- List all Docker containers (running and stopped):
`docker ps --all`
`docker ps {{[-a|--all]}}`
- Start a container from an image, with a custom name:
@@ -29,9 +29,9 @@ source: https://github.com/tldr-pages/tldr.git
`docker images`
- Open an [i]nteractive [t]ty with Bourne shell (`sh`) inside a running container:
- Open an interactive tty with Bourne shell (`sh`) inside a running container:
`docker exec -it {{container_name}} {{sh}}`
`docker exec {{[-it|--interactive --tty]}} {{container_name}} {{sh}}`
- Remove stopped containers:
@@ -39,4 +39,4 @@ source: https://github.com/tldr-pages/tldr.git
- Fetch and follow the logs of a container:
`docker logs -f {{container_name}}`
`docker logs {{[-f|--follow]}} {{container_name}}`