Update cheatsheets

This commit is contained in:
ivuorinen
2024-04-19 00:13:37 +00:00
parent 7de5092ed1
commit 48aff03a74
104 changed files with 150 additions and 146 deletions

View File

@@ -22,7 +22,7 @@ source: https://github.com/tldr-pages/tldr.git
- Filter containers that contain a substring in their name:
`docker ps --filter="name={{name}}"`
`docker ps --filter "name={{name}}"`
- Filter containers that share a given image as an ancestor:
@@ -34,8 +34,8 @@ source: https://github.com/tldr-pages/tldr.git
- Filter containers by status (created, running, removing, paused, exited and dead):
`docker ps --filter="status={{status}}"`
`docker ps --filter "status={{status}}"`
- Filter containers that mount a specific volume or have a volume mounted in a specific path:
`docker ps --filter="volume={{path/to/directory}}" --format "table {{.ID}} {{.Image}} {{.Names}} {{.Mounts}}"`
`docker ps --filter "volume={{path/to/directory}}" --format "table {{.ID}} {{.Image}} {{.Names}} {{.Mounts}}"`