1. 程式人生 > >上傳Docker映象到阿里雲

上傳Docker映象到阿里雲

 

1.配置阿里雲的映象加速器:https://cr.console.aliyun.com/#/accelerator

2.命令列登入到阿里雲的doker倉庫,--username為阿里雲的使用者名稱

docker login --username=cheergoivan registry.cn-hangzhou.aliyuncs.com

3.為本地映象新增tag

docker tag f4ec85e8298f registry.cn-hangzhou.aliyuncs.com/cheergoivan/mynginx:0.1

4.push到docker倉庫

docker push registry.cn-hangzhou.aliyuncs.com/cheergoivan/mynginx:0.1

5.登入阿里雲檢視已上傳的映象列表:https://cr.console.aliyun.com/#/imageList

 

在登陸時 出現 unauthorized: authentication required 的錯誤提示,

按照控制檯裡的提示我錯把阿里雲的登陸密碼給修改了。其實在這裡,在這裡。

 

push一個本地映象到阿里雲倉庫:https://www.jianshu.com/p/9b4cae6e3636

Docker映象上傳到阿里雲的步驟詳解:https://blog.csdn.net/qq_16605855/article/details/79961933