mirror of
https://github.com/wsargent/docker-cheat-sheet.git
synced 2025-12-16 07:00:13 +01:00
Merge pull request #94 from int32bit/patch-2
List all containers with a specified image
This commit is contained in:
commit
2b388328ce
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}}')
|
||||
```
|
||||
|
||||
For all containers listed by image:
|
||||
|
||||
```
|
||||
docker ps -a -f ancestor=ubuntu
|
||||
```
|
||||
|
||||
## Contributing
|
||||
|
||||
Here's how to contribute to this cheat sheet.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue