In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1. Image query
2. Pull [root@docker network-scripts] # docker pull alpineUsing default tag: the latest version of latest # by default You can specify versions such as: docker pull alpine:3.10.3latest: Pulling from library/alpine e6b0cf9c0882: Pull complete Digest: sha256:2171658620155679240babee0a7714f6509fae66898db422ad803b951257db78Status: Downloaded newer image for alpine:latestdocker.io/library/alpine:latest # Image Construction Note: docker pull alpine can be changed to docker.io/library/apline:latest III. View the local image [root@docker network-scripts] # docker images # View the local image REPOSITORY TAG IMAGE ID CREATED SIZEalpine latest cc0abc535e36 12 days ago 5.59MBhello-world latest fce289e99eb9 12 months ago 1.84kB 4. Tag the image [root@docker network-scripts] # docker tag cc0abc535e36 docker.io/zhoumingkang/alpine:v3.10.3# cc0abc535e36: image IMAGE ID#docker.io/zhoumingkang/alpine:v3.10.3: image structure [root@docker network-scripts] # docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEalpine latest cc0abc535e36 12 days ago 5.59MBzhoumingkang/alpine v3.10.3 cc0abc535e36 12 days ago 5.59MBhello-world latest fce289e99eb9 12 months ago 1.84kB V, Push zhoumingkang/alpine:v3.10.3 to your own warehouse [root@docker network-scripts] # docker push docker.io/zhoumingkang/alpine:v3.10.3The push refers to repository [docker.io/zhoumingkang/alpine] 6b27de954cca: Mounted from library/alpine v3.10.3: digest: sha256:3983cc12fb9dc20a009340149e382a18de6a8261b0ac0e8f5fcdf11f8dd5937e size: 528
VI. Remove a label [root@docker network-scripts] # docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEzhoumingkang/alpine v3.10.3 cc0abc535e36 12 days ago 5.59MBalpine latest cc0abc535e36 12 days ago 5.59MBalpine 3.9.4 055936d39205 8 months ago 5.53MBhello-world latest fce289e99eb9 12 months ago 1.84kB [root@docker network-scripts] # docker rmi docker.io/library/alpine:latestUntagged: alpine:latest # remove the tag Untagged: alpine@sha256:2171658620155679240babee0a7714f6509fae66898db422ad803b951257db78 [root@docker network-scripts] # docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEzhoumingkang/ Alpine v3.10.3 cc0abc535e36 12 days ago 5.59MBalpine 3.9.4 055936d39205 8 months ago 5.53MBhello-world latest fce289e99eb9 12 months ago 1.84kB7, Delete an image [root@docker network-scripts] # docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEzhoumingkang/alpine v3.10.3 cc0abc535e36 12 days ago 5.59MBalpine 3.9.4 055936d39205 8 months ago 5.53MBhello-world latest Fce289e99eb9 12 months ago 1.84kB [root@docker network-scripts] # docker rmi-f cc0abc535e36Untagged: zhoumingkang/alpine:v3.10.3Untagged: zhoumingkang/alpine@sha256:3983cc12fb9dc20a009340149e382a18de6a8261b0ac0e8f5fcdf11f8dd5937eDeleted: sha256:cc0abc535e36a7ede71978ba2bbd8159b8a5420b91f2fbc520cdf5f673640a34Deleted: sha256:6b27de954cca6332272e7709b7d8ceccee1489d9452af73391df360a26123580 [root@docker network-scripts] # docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEalpine 3.9.4 055936d39205 8 months ago 5.53MBhello-world latest fce289e99eb9 12 months ago 1.84kB 8. Put the image you just deleted Pull it back from the remote warehouse [root@docker network-scripts] # docker pull docker.io/zhoumingkang/alpine:v3.10.3v3.10.3: Pulling from zhoumingkang/alpinee6b0cf9c0882: Pull complete Digest: sha256:3983cc12fb9dc20a009340149e382a18de6a8261b0ac0e8f5fcdf11f8dd5937eStatus: Downloaded newer image for zhoumingkang/alpine:v3.10.3docker.io/zhoumingkang/alpine:v3.10.3 [root@docker network-scripts] # docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEzhoumingkang/alpine V3.10.3 cc0abc535e36 12 days ago 5.59MBalpine 3.9.4 055936d39205 8 months ago 5.53MBhello-world latest fce289e99eb9 12 months ago 1.84kB IX, Docker mirroring characteristics
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.