In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
3.2 push image to Ali Cloud Warehouse 3.2.1 Log in to Image Warehouse [root@node1 ~] # docker login-- username=tb7595138 registry.cn-hangzhou.aliyuncs.comPassword: WARNING! Your password will be stored unencrypted in / root/.docker/config.json.Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-storeLogin Succeeded [root@node1 ~] # 3.2.2 tag the image in accordance with the upload standard [root @ node1 ~] # docker image lsREPOSITORY TAG IMAGE ID CREATED SIZEweb1 v2 1918f7fd1895 37 minutes ago 1.15MBweb1 V1 d63a2e64d5d8 About an hour ago 1.15MBnginx 1.14-alpine 77bae8d00654 5 weeks ago 17.7MBredis 4-alpine 05097a3a0549 2 months ago 30MBbusybox latest 59788edf1f3e 2 months ago 1.15MBquay.io / coreos/flannel v0.10.0-amd64 f0fad859c909 10 months ago 44.6MB [root@node1 ~] # docker tag 1918f7fd1895 registry.cn-hangzhou.aliyuncs.com/arppinging/web:v1 [root@node1 ~] # docker image lsREPOSITORY TAG IMAGE ID CREATED SIZEweb1 V2 1918f7fd1895 38 minutes ago 1.15MBregistry.cn-hangzhou.aliyuncs.com/arppinging/web v1 1918f7fd1895 38 minutes ago 1.15MBweb1 v1 d63a2e64d5d8 About an hour ago 1.15MBnginx 1.14-alpine 77bae8d00654 5 weeks ago 17.7MBredis 4-alpine 05097a3a0549 2 months ago 30MBbusybox latest 59788edf1f3e 2 months ago 1.15MBquay.io/coreos / flannel v0.10.0-amd64 f0fad859c909 10 months ago 44.6MB [root@node1 ~] # 3.2.3 upload Image [root@node1 ~] # docker push registry.cn-hangzhou.aliyuncs.com/arppinging/web:v1The push refers to repository [registry.cn-hangzhou.aliyuncs.com/arppinging/web] 3b385ace78f4: Pushed 8a788232037e: Pushed v1: digest: sha256:1ca7a59ca0a034a44be13bea08fbce5984a20f92cf0243c69984bbb5f84a22bb size: 734 [root@node1] #
IV. Import and export images
In addition to pushing the image to the repository, you can also export the image, copy it to another host and then export it.
Export format: docker save [option] image [image]
-o: packaged as
[root@node1 ~] # docker save-o test.tar b1:v1.1 b1:v2 [root@node1 ~] # lsanaconda-ks.cfg initial-setup-ks.cfg test.tar Public template Video Picture document download Music Desktop [root@node1 ~] #
Import format: docker load
-i:input
At this point, I believe you have a deeper understanding of "the basis of docker image management and the method of making images". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.