List all containers with a specified image

This commit is contained in:
int32bit 2016-04-27 16:48:12 +08:00
parent 4c5d475b4e
commit 1ba87a9f6d

View file

@ -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.