Docker tag detailed explanation The use of the docker tag command and how to push the local image to daocloud.io. Docker hub is not used for experiments here because the network speed of Docker hub is not strong enough and push failure is easy to occur. Use docker tag to rename the image using its ID chenyangdeMacBook-Pro:~ chenyang$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE hello-world latest fce289e99eb9 9 weeks ago 1.84 kB chenyangdeMacBook-Pro:~ chenyang$ chenyangdeMacBook-Pro:~ chenyang$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE hello-world latest fce289e99eb9 9 weeks ago 1.84 kB chenyangdeMacBook-Pro:~ chenyang$ docker tag fce289e99 hello-world:v1 chenyangdeMacBook-Pro:~ chenyang$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE hello-world latest fce289e99eb9 9 weeks ago 1.84 kB hello-world v1 fce289e99eb9 9 weeks ago 1.84 kB Use docker tag to rename the image tag chenyangdeMacBook-Pro:~ chenyang$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE hello-world latest fce289e99eb9 9 weeks ago 1.84 kB hello-world v1 fce289e99eb9 9 weeks ago 1.84 kB chenyangdeMacBook-Pro:~ chenyang$ docker tag hello-world:latest hello-world:v2 chenyangdeMacBook-Pro:~ chenyang$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE hello-world latest fce289e99eb9 9 weeks ago 1.84 kB hello-world v1 fce289e99eb9 9 weeks ago 1.84 kB hello-world v2 fce289e99eb9 9 weeks ago 1.84 kB Use docker push to push the image to daocloud.io You 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.io Username (chenyang_1010): chenyang_1010 Password: Login Succeeded chenyangdeMacBook-Pro:~ chenyang$ Tag it and upload it chenyangdeMacBook-Pro:~ chenyang$ docker tag hello-world daocloud.io/zter/hello-world:v1 chenyangdeMacBook-Pro:~ chenyang$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE hello-world latest fce289e99eb9 9 weeks ago 1.84 kB hello-world v1 fce289e99eb9 9 weeks ago 1.84 kB hello-world v2 fce289e99eb9 9 weeks ago 1.84 kB daocloud.io/zter/hello-world v1 fce289e99eb9 9 weeks ago 1.84 kB chenyangdeMacBook-Pro:~ chenyang$ docker push daocloud.io/zter/hello-world:v1 The push refers to a repository [daocloud.io/zter/hello-world] af0b15c8625b: Pushed v1: digest: sha256:39bbd4a41b5d3b164632d3b4a295c0db31139992a8fe985f949dac7ccff7aa54 size: 524 Upload results The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
>>: mysql installer web community 5.7.21.0.msi installation graphic tutorial
This article shares the specific code of JavaScri...
Find the problem Let's look at the problem fi...
<br />Without any warning, I saw news on cnB...
Similar to the code hosting service provided by G...
Encapsulate a navigation bar component in Vue3, a...
Preface The "destructuring assignment syntax...
Generally speaking, when we view the contents of ...
Table of contents Scope Global Scope Function Sco...
Configuration file that needs to be loaded when t...
Sometimes it is necessary to perform simple verif...
When we create a page, especially a homepage, we ...
This article describes how to build a phalcon env...
Click here to return to the 123WORDPRESS.COM HTML ...
Beginners can learn HTML by understanding some HT...
Table of contents Preface 1. Tomcat class loader ...