docker ps --filter ancestor=nginx

Category: Docker

docker ps --filter ancestor=nginx

List containers created from an image

Matches containers whose image is nginx or shares its ancestry, useful after bulk image rebuilds. Other filters include name, status, and label. Combine with -q to feed IDs into cleanup loops.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.