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
