From 1ba87a9f6d8b44775f014884ed97fe79f8534f6d Mon Sep 17 00:00:00 2001 From: int32bit Date: Wed, 27 Apr 2016 16:48:12 +0800 Subject: [PATCH] List all containers with a specified image --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index f0a1719..924274f 100644 --- a/README.md +++ b/README.md @@ -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.