佳木斯湛栽影视文化发展公司

主頁 > 知識庫 > docker tag和docker push的使用詳解

docker tag和docker push的使用詳解

熱門標(biāo)簽:硅谷的囚徒呼叫中心 檢查注冊表項 網(wǎng)站建設(shè) 阿里云 美圖手機(jī) 使用U盤裝系統(tǒng) 百度競價點(diǎn)擊價格的計算公式 智能手機(jī)

docker tag 詳解

docker tag 命令的使用,以及如何將本地的鏡像推送到daocloud.io,這里不用docker hub作實(shí)驗(yàn),是因?yàn)?,docker hub網(wǎng)速不給力,容易推送失敗。

使用docker tag使用鏡像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

使用docker tag使用鏡像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

使用docker push 推送鏡像到daocloud.io

需要登陸daocloud.io,如果沒有賬戶的,需要去網(wǎng)站上注冊一個。

chenyangdeMacBook-Pro:~ chenyang$ docker login daocloud.io
Username (chenyang_1010): chenyang_1010
Password: 
Login Succeeded
chenyangdeMacBook-Pro:~ chenyang$ 

打上標(biāo)簽,然后上傳

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

上傳結(jié)果

以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

標(biāo)簽:湖北 湘潭 山南 煙臺 懷化 賀州 通遼 黃山

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《docker tag和docker push的使用詳解》,本文關(guān)鍵詞  ;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 收縮
    • 微信客服
    • 微信二維碼
    • 電話咨詢

    • 400-1100-266
    宁强县| 绍兴市| 彭州市| 古浪县| 西乡县| 张家界市| 电白县| 丹阳市| 宁武县| 读书| 大姚县| 枞阳县| 天津市| 肥东县| 资兴市| 家居| 苗栗县| 嵊州市| 垣曲县| 海淀区| 金秀| 饶阳县| 监利县| 玛多县| 丹棱县| 额尔古纳市| 广东省| 社会| 新和县| 噶尔县| 邓州市| 华池县| 宜都市| 毕节市| 金乡县| 阳原县| 宁国市| 英吉沙县| 阜城县| 什邡市| 灵武市|