创建 Aliyun镜像仓库

首先根据aliyun官方文档创建位于 中国香港的镜像仓库:文档地址

登录Google Cloud Shell拉取镜像

docker pull  images 
docker images  #记下需要推送的ImageId

推送镜像到阿里云镜像仓库

docker login --username=用户名  registry.cn-hongkong.aliyuncs.com           #登录仓库
docker tag [ImageId] registry.cn-hongkong.aliyuncs.com/命名空间/仓库名称:[镜像版本号]
docker push registry.cn-hongkong.aliyuncs.com/命名空间/仓库名称:[镜像版本号]

境内服务器快速拉取镜像

docker pull registry.cn-hongkong.aliyuncs.com/命名空间/仓库名称:[镜像版本号]

参考文档

1.使用GoogleCloudShell解决99%的镜像拉取问题
2.使用个人版实例推送拉取镜像
3.Docker基本操作

标签: none

添加新评论