阿里云Docker镜像仓库的搭建与使用
- 阿里云镜像仓库申请地址:
- https://cr.console.aliyun.com/repository/cn-beijing/wei-sun/mysql/details
- 申请步骤可直接登录阿里云查看,操作步骤如下
- 步骤:
- 登录到阿里云Docker Registry
$ sudo docker login --username=xxxx registry.cn-shenzhen.aliyuncs.com
- 将镜像推送到Registry
$ sudo docker login --username=xxxxxx registry.cn-shenzhen.aliyuncs.com $ sudo docker tag [ImageId] registry.cn-shenzhen.aliyuncs.com/xdclassimages/mysql: [镜像版本号]
$ sudo docker push registry.cn-shenzhen.aliyuncs.com/xdclassimages/mysql: [镜像版本号] - 从Registry中拉取镜像
$ sudo docker pull registry.cn-shenzhen.aliyuncs.com/xdclassimages/mysql:[镜像版本号]
- 登录到阿里云Docker Registry