Skip to content

this repo is for copy image from global to china region

License

Notifications You must be signed in to change notification settings

zhaojiew10/toimage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker 镜像推送工具

image-20230630233242457

本工具使用 Docker 客户端和 AWS SDK for Go 推送 Docker 镜像到 Amazon ECR 仓库。推送过程中会自动获取 AWS 账户的认证信息,并使用认证信息登录 Amazon ECR。

安装

介绍

  • 在 main 函数中配置 Docker 镜像信息,包括 Docker 镜像名称和标签。

  • 运行程序,程序会自动获取 AWS 账户的认证信息,并使用认证信息登录 Amazon ECR。

  • 程序会将 Docker 镜像推送到 Amazon ECR 仓库,并在推送过程中显示推送进度。

依赖

  • Docker 客户端

  • AWS SDK for Go

service文件

sudo vim /etc/systemd/system/toimage.service
[Unit]
Description=my toimage daemon service
 
[Service]
Type=simple
Restart=always
RestartSec=5s
User=root
WorkingDirectory=/home/ec2-user/toimage
ExecStart=/home/ec2-user/toimage/toimage
 
[Install]
WantedBy=multi-user.target

About

this repo is for copy image from global to china region

Resources

License

Stars

Watchers

Forks

Packages

No packages published