cli icon indicating copy to clipboard operation
cli copied to clipboard

Docker ps ancestor filter on image without a tag doesn't work

Open jcald1 opened this issue 6 years ago • 3 comments

$ 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.

jcald1 avatar Nov 11 '19 23:11 jcald1

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.

sam-thibault avatar Mar 27 '23 09:03 sam-thibault

Please let me specify a * or something else to match for all tags.

tonglil avatar Feb 06 '24 20:02 tonglil

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.

EloB avatar Apr 12 '24 10:04 EloB

I have this issue too.

cdupont avatar Feb 27 '25 09:02 cdupont