mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-18 20:01:13 +00:00
Update cheatsheets
This commit is contained in:
@@ -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}}"`
|
||||
|
||||
Reference in New Issue
Block a user