docker

How to check if a Docker image with a specific tag exist on registry?


I want to check if docker image with a specific tag exist on registry.

I saw this post: how-to-check-if-a-docker-image-with-a-specific-tag-exist-locally

But it handles images on local system.

How can I use docker image inspect (or other commands) to check if image with specific tag exists on remote registry ?


Solution

  • I found the way without pulling:

    curl -X GET http://my-registry/v2/image_name/tags/list
    

    where:

    The result shows all the tags in the registry