This article is a mirror article of machine translation, please click here to jump to the original article.

View: 2478|Reply: 0

Docker looks at the latest specific (corresponding) version of the image

[Copy link]
Posted on 9/5/2024 9:29:31 AM | | | |
Requirements: When looking at some Docker tutorials, the tutorials always create containers based on the latest tag. With the author releasing a new latest image branch, when we create containers based on the latest branch, we are actually two different images. How do I fix the specific version of the latest? No matter how the author updates the latest image, it does not affect our pull of the original image.

in order togitlab-ce:latest For example.

Method 1:

View the Manifest digest directly in the Hub repository, as shown in the following image:



Option 2:

You need to download the image first, and then query it through the Docker command, as follows:



[gitlab/gitlab-ce@sha256:6f2ab9c42cef6b8058ef45042ce33a4505a0a9ac1a8d9ed85016ceca743dd01d]

Option 3:

Call the API API of Docker Hub to query, the interface documentation:The hyperlink login is visible.

Calling the interface:

As shown below:



Finally, when we pull the image, we can use the following command:

(End)




Previous:Linux deploys the Netdata performance monitoring tool using Docker
Next:Encrypt the backend using the RSA algorithm (. NET) decrypted
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com