View the mirror version information in the docker mirror warehouse

background

Nowadays, many software services provide docker images for rapid construction. We often need to use a specific version. Here is the version of the docker image. How to check the docker image version?

View method

If you want to view all versions of a docker image, docker_img is the image name

curl https://registry.hub.docker.com/v1/repositories/${docker_img}/tags | python3 -m json.tool | more

Need to install python3 on the machine (refer to python3 environment to build ).

For example: query all versions of postgres

curl https://registry.hub.docker.com/v1/repositories/postgres/tags | python3 -m json.tool | more

The above figure shows all versions of postgres, and name is the corresponding version tag.

Blogger: test to make money (a test open code farmer who is not 996 but 996)

Motto: Focus on test development and automated operation and maintenance, work hard to read, think and write, and lay financial freedom for the life of the internal volume.

Content categories: technology improvement, workplace miscellaneous talk, career development, reading and writing, investment and financial management, healthy life.

csdn:https://blog.csdn.net/ccgshigao

Blog Park: https://www.cnblogs.com/qa-freeroad/

51cto :https://blog.51cto.com/14900374

In the depressing years of programmers, we look forward to growing together, welcome to pay attention, thank you for making bricks!


Guess you like

Origin blog.51cto.com/14900374/2638569