Docker ps ancestor filter on image without a tag doesn't work
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
338fbd7d54c9 slacgrip/master:191022 "python3 -u run_grid…" 5 minutes ago Up 5 minutes 6266-6299/tcp gridlabd_1_1_recovery_ieee37_with_str_repl.glm_05883fac-f4af-4ee4-80e6-47d38d00843a
When I run: docker ps -a -q --filter ancestor=slacgrip/master, I get no output
If I run:
docker ps -a -q --filter ancestor=slacgrip/master:191022, with the '191022' tag, then it prints the container ID.
when you run docker ps -a -q --filter ancestor=slacgrip/master the cli will look for slacgrip/master:latest. If this does not exist then there is no result to output.
This is currently the expected behavior, but maybe we can improve this.
Please let me specify a * or something else to match for all tags.
Having the same issue. I'm using sam cli. So I'm not the one setting up docker containers. I'm trying to make a script that closes the docker containers.
I have this issue too.