mirror of
https://github.com/wsargent/docker-cheat-sheet.git
synced 2025-12-16 15:10:12 +01:00
List all containers with a specified image
This commit is contained in:
parent
4c5d475b4e
commit
1ba87a9f6d
1 changed files with 6 additions and 0 deletions
|
|
@ -603,6 +603,12 @@ For all containers listed by name:
|
||||||
docker stats $(docker ps --format '{{.Names}}')
|
docker stats $(docker ps --format '{{.Names}}')
|
||||||
```
|
```
|
||||||
|
|
||||||
|
For all containers listed by image:
|
||||||
|
|
||||||
|
```
|
||||||
|
docker ps -a -f ancestor=ubuntu
|
||||||
|
```
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
Here's how to contribute to this cheat sheet.
|
Here's how to contribute to this cheat sheet.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue