Ps - filter does not work with -H

I need to get a list of containers working with a specific image id. But, --filter ancestor={Image Id}does not work with the option -H. e.g. $ docker -H {Host_ip}:{port_no} ps --filter ancestor={Image Id} Neither does it show any error, nor does it show the correct result. Each output lists only all containers.

Docker Version: 1.10.2

+4
source share
1 answer
  • Run the docker ps command on the target host to confirm the problem.

  • Remember to use the -a option. Maybe the container is not working ...

I successfully run docker ps wit -H and --filter ancestor = {image-id} successfully using docker 1.10.3

docker -H 192.168.59.2:4000 ps -a --filter ancestor=f71a93076f3f
+1
source

All Articles