mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-22 21:51:26 +00:00
Update cheatsheets
This commit is contained in:
@@ -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}}`
|
||||
|
||||
Reference in New Issue
Block a user