Docker上传/拉取阿里云镜像

一、创建镜像仓库

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
拉取成功

 

 

posted @ 2020-07-23 09:03  疯狂的机器人  阅读(1598)  评论(0编辑  收藏  举报