How can I find a Docker image with a specific tag in Docker registry on the Docker command line?

前端 未结 10 1214
小蘑菇
小蘑菇 2020-12-12 18:21

I try to locate one specific tag for a Docker image. How can I do it on the command line? I want to avoid downloading all the images and then removing the unneeded ones.

10条回答
  •  无人及你
    2020-12-12 18:43

    Reimplementation of the previous post, using Python over sed/AWK:

    for Repo in $* ; do
        tags=$(curl -s -S "https://registry.hub.docker.com/v2/repositories/library/$Repo/tags/")
        python - <

提交回复
热议问题