Docker Community Forums

Share and learn in the Docker community.

List of containers for particular image #Docker Swarm


(Dhruba619) #1

I need to get a list of containers running using particular Image Id. But,
–filter ancestor={Image Id} does not work with -H option.
for ex. $ docker -H {Host_ip}:{port_no} ps --filter ancestor={Image Id}
Neither it shows any error nor shows the correct result. Everytime output shows a list all the containers only.

Docker Version: 1.10.2