一、創建鏡像倉庫
1.登錄阿里雲
URL:https://cr.console.aliyun.com/cn-hangzhou/mirrors
2.創建鏡像倉庫
按提示要求填寫內容創建鏡像倉庫
鏡像倉庫創建完成后,會在列表中顯示,如下圖:
2.查看倉庫信息
點擊管理查看倉庫基本信息
二、上傳本地鏡像到阿里雲鏡像倉庫
docker login --username=xxxxxx@qq.com registry.cn-shanghai.aliyuncs.com
docker tag 0a1da98e86eb registry.cn-shanghai.aliyuncs.com/jx_os/python:3.7
docker push registry.cn-shanghai.aliyuncs.com/jx_os/python:3.7
上傳鏡像成功
三、拉取阿里雲鏡像
docker pull registry.cn-shanghai.aliyuncs.com/jx_os/python:3.7
拉取成功