mirror of https://github.com/CrimsonTome/tldr.git
podman-ps: update page (#10610)
parent
20d4065dbf
commit
20a1678e7d
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
- Filter containers that contain a substring in their name:
|
- Filter containers that contain a substring in their name:
|
||||||
|
|
||||||
`podman ps --filter="name={{name}}"`
|
`podman ps --filter "name={{name}}"`
|
||||||
|
|
||||||
- Filter containers that share a given image as an ancestor:
|
- Filter containers that share a given image as an ancestor:
|
||||||
|
|
||||||
|
@ -25,12 +25,12 @@
|
||||||
|
|
||||||
- Filter containers by exit status code:
|
- Filter containers by exit status code:
|
||||||
|
|
||||||
`podman ps --all --filter="exited={{code}}"`
|
`podman ps --all --filter "exited={{code}}"`
|
||||||
|
|
||||||
- Filter containers by status (created, running, removing, paused, exited and dead):
|
- Filter containers by status (created, running, removing, paused, exited and dead):
|
||||||
|
|
||||||
`podman ps --filter="status={{status}}"`
|
`podman ps --filter "status={{status}}"`
|
||||||
|
|
||||||
- Filter containers that mount a specific volume or have a volume mounted in a specific path:
|
- Filter containers that mount a specific volume or have a volume mounted in a specific path:
|
||||||
|
|
||||||
`podman ps --filter="volume={{path/to/directory}}" --format "table {{.ID}}\t{{.Image}}\t{{.Names}}\t{{.Mounts}}"`
|
`podman ps --filter "volume={{path/to/directory}}" --format "table {{.ID}}\t{{.Image}}\t{{.Names}}\t{{.Mounts}}"`
|
||||||
|
|
Loading…
Reference in New Issue