mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-09 17:58:01 +00:00
Update cheatsheets
This commit is contained in:
@@ -11,7 +11,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- List all containers (both running and stopped):
|
||||
|
||||
`podman ps --all`
|
||||
`podman ps {{[-a|--all]}}`
|
||||
|
||||
- Create a container from an image, with a custom name:
|
||||
|
||||
@@ -31,7 +31,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Open a shell inside an already running container:
|
||||
|
||||
`podman exec --interactive --tty {{container_name}} {{sh}}`
|
||||
`podman exec {{[-it|--interactive --tty]}} {{container_name}} {{sh}}`
|
||||
|
||||
- Remove a stopped container:
|
||||
|
||||
@@ -39,4 +39,4 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Display the logs of one or more containers and follow log output:
|
||||
|
||||
`podman logs --follow {{container_name}} {{container_id}}`
|
||||
`podman logs {{[-f|--follow]}} {{container_name}} {{container_id}}`
|
||||
|
||||
Reference in New Issue
Block a user