濮阳杆衣贸易有限公司

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

docker tag和docker push的使用詳解

熱門標簽:承德地圖標注公司 地圖標注黃河的位置 濮陽好的聯(lián)通400電話申請 靈圖uu電子寵物店地圖標注 百度地圖標注公司位置要多少錢 地圖標注如何改成微信號 山東企業(yè)外呼系統(tǒng)公司 400電話號碼辦理多少錢 虛假地圖標注

docker tag 詳解

docker tag 命令的使用,以及如何將本地的鏡像推送到daocloud.io,這里不用docker hub作實驗,是因為,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$ 

打上標簽,然后上傳

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

上傳結果

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

標簽:上海 泰安 鷹潭 安康 樂山 德宏 淮安 福州

巨人網(wǎng)絡通訊聲明:本文標題《docker tag和docker push的使用詳解》,本文關鍵詞  docker,tag,和,push,的,使用,;如發(fā)現(xiàn)本文內(nèi)容存在版權問題,煩請?zhí)峁┫嚓P信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《docker tag和docker push的使用詳解》相關的同類信息!
  • 本頁收集關于docker tag和docker push的使用詳解的相關信息資訊供網(wǎng)民參考!
  • 推薦文章
    舒兰市| 信阳市| 枞阳县| 蒙自县| 颍上县| 安平县| 瓮安县| 美姑县| 诸城市| 托克托县| 墨竹工卡县| 丁青县| 松溪县| 社会| 大连市| 甘孜县| 车险| 南京市| 瓮安县| 宁河县| 宜兴市| 通城县| 长顺县| 定边县| 开阳县| 扎兰屯市| 湖口县| 云霄县| 巴彦县| 阜新| 开阳县| 佛冈县| 德兴市| 稷山县| 岳池县| 虎林市| 荔波县| 鄂托克前旗| 临洮县| 丹阳市| 栾川县|