一、创建镜像仓库

1.登录阿里云

URL:https://cr.console.aliyun.com/cn-hangzhou/mirrors

 

2.创建镜像仓库

按提示要求填写内容创建镜像仓库

Docker上传/拉取阿里云镜像

 

镜像仓库创建完成后,会在列表中显示,如下图:

Docker上传/拉取阿里云镜像

2.查看仓库信息

点击管理查看仓库基本信息

Docker上传/拉取阿里云镜像

 

二、上传本地镜像到阿里云镜像仓库

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上传/拉取阿里云镜像

 

上传镜像成功

Docker上传/拉取阿里云镜像

 

三、拉取阿里云镜像

docker pull registry.cn-shanghai.aliyuncs.com/jx_os/python:3.7
拉取成功

 Docker上传/拉取阿里云镜像

 

相关文章:

  • 2021-11-04
  • 2019-12-23
  • 2021-12-14
  • 2021-08-06
  • 2021-07-14
  • 2022-12-23
  • 2021-04-03
猜你喜欢
  • 2021-08-07
  • 2022-02-02
  • 2021-09-20
  • 2022-01-08
  • 2021-09-11
  • 2021-12-29
相关资源
相似解决方案