List all the tags for a image on docker hub
2020-03-16
71 words
1 min read
Something that you may want to know sometimes and docker cli does not show by default is all the tags for the image on docker hub. Here is example to list all tags fro the centos image
curl https://registry.hub.docker.com/v2/repositories/library/centos/tags |jq '."results"[]["name"]'
The example is for a v2 registry. The output for v1 is different than v2 registry. For a v1 registry, you can use command like below
curl https://registry.hub.docker.com/v1/repositories/centos/tags |jq '.[]["name"]'
Related Articles:
- 2020/01/06 using cat with grep – why?
- 2019/12/30 Get the git url of current repo in clipboard
- 2019/12/02 i3 – show mapped hotkeys
- 2019/07/15 Check your session type – wayland or X11
- 2019/03/18 copy /proc folder
Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.