How can I list all tags for a Docker image on a remote registry?

前端 未结 19 1989
时光取名叫无心
时光取名叫无心 2020-12-04 04:46

How can I list all tags of a Docker image on a remote Docker registry using the CLI (preferred) or curl?

Preferably without pulling all versions from the remote regi

19条回答
  •  星月不相逢
    2020-12-04 05:16

    I've managed to get it working using curl:

    curl -u : https://myrepo.example/v1/repositories///tags
    

    Note that image_name should not contain user details etc. For example if you're pushing image named myrepo.example/username/x then image_name should be x.

提交回复
热议问题