Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use docker tag and docker push

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to use docker tag and docker push, the article is very detailed, has a certain reference value, interested friends must read it!

Docker tag detailed explanation

For the use of the docker tag command and how to push the local image to daocloud.io, there is no need for docker hub to do an experiment here, because the docker hub network speed is not strong and it is easy to push.

Using docker tag to rename using Mirror ID

ChenyangdeMacBook-Pro:~ chenyang$ docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEhello-world latest fce289e99eb9 9 weeks ago 1.84 kBchenyangdeMacBook-Pro:~ chenyang$chenyangdeMacBook-Pro:~ chenyang$ docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEhello-world latest fce289e99eb9 9 weeks ago 1.84 kBchenyangdeMacBook-Pro:~ chenyang$ docker tag fce289e99 hello-world:v1chenyangdeMacBook-Pro:~ chenyang$ docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEhello-world latest fce289e99eb9 9 weeks ago 1.84 kBhello-world v1 fce289e99eb9 9 weeks ago 1.84 kB

Using docker tag to rename using Mirror tag

ChenyangdeMacBook-Pro:~ chenyang$ docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEhello-world latest fce289e99eb9 9 weeks ago 1.84 kBhello-world v1 fce289e99eb9 9 weeks ago 1.84 kBchenyangdeMacBook-Pro:~ chenyang$ docker tag hello-world:latest hello-world:v2chenyangdeMacBook-Pro:~ chenyang$ docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEhello-world latest fce289e99eb9 9 weeks ago 1. 84 kBhello-world v1 fce289e99eb9 9 weeks ago 1.84 kBhello-world v2 fce289e99eb9 9 weeks ago 1.84 kB

Use docker push to push image to daocloud.io

Need to log in to daocloud.io, if you don't have an account, you need to register one on the website.

ChenyangdeMacBook-Pro:~ chenyang$ docker login daocloud.ioUsername (chenyang_1010): chenyang_1010Password: Login SucceededchenyangdeMacBook-Pro:~ chenyang$

Tag it and upload it.

ChenyangdeMacBook-Pro:~ chenyang$ docker tag hello-world daocloud.io/zter/hello-world:v1chenyangdeMacBook-Pro:~ chenyang$ docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEhello-world latest fce289e99eb9 9 weeks ago 1.84 kBhello-world v1 fce289e99eb9 9 weeks ago 1.84 kBhello-world v2 fce289e99eb9 9 weeks ago 1.84 kBdaocloud.io/zter/hello- World v1 fce289e99eb9 9 weeks ago 1.84 kBchenyangdeMacBook-Pro:~ chenyang$ docker push daocloud.io/zter/hello-world:v1The push refers to a repository [daocloud.io/zter/hello-world] af0b15c8625b: Pushed v1: digest: sha256:39bbd4a41b5d3b164632d3b4a295c0db31139992a8fe985f949dac7ccff7aa54 size: 524

Upload result

The above is all the content of the article "how to use docker tag and docker push". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report