下载docker镜像并推送至阿里云镜像服务

脚本地址

https://gitee.com/shenglx/docker_image_push_aliyun

 

主要思路是在可以访问docker的服务器上通过脚本将镜像推送到阿里镜像服务,怎么访问购买海外服务器或者通过别的方式

开通阿里云容器镜像服务(个人版即可) 

https://cr.console.aliyun.com/

下载 docker_psuh.sh文件 赋予权限

chmod +x docker_push.sh

运行命令 ./docker_push.sh "your_aliyun_registry" "your_aliyun_namespace" "your_aliyun_registry_user" "your_aliyun_registry_password" "nginx:1.19.3" "redis:6.0.9" "busybox:latest"

your_aliyun_registry 是你的阿里云镜像仓库地址

your_aliyun_namespace 是你的阿里云命名空间

your_aliyun_registry_user 是你的阿里云镜像仓库用户名

your_aliyun_registry_password 是你的阿里云镜像仓库密码

"nginx:1.19.3" "redis:6.0.9" "busybox:latest" 为需要下载的镜像

posted @ 2024-06-11 14:53  sixserve  阅读(31)  评论(0编辑  收藏  举报