从源清单中把docker镜像指定的tag构建为指定的platform并推送到指定的容器平台上
Go to file
2024-10-11 21:24:47 +08:00
.gitignore v1.0 2024-10-11 21:24:47 +08:00
go.mod v1.0 2024-10-11 21:24:47 +08:00
go.sum v1.0 2024-10-11 21:24:47 +08:00
images.yaml v1.0 2024-10-11 21:24:47 +08:00
main v1.0 2024-10-11 21:24:47 +08:00
main.go v1.0 2024-10-11 21:24:47 +08:00
README.md v1.0 2024-10-11 21:24:47 +08:00

dockerporter

一个可以将images.yaml清单中的多个来源的镜像标签构建为多平台镜像并推送到一个指定仓库的工具。

环境依赖

  • docker
  • docker buildx
  • go (1.23+)

用法

用go编码运行

go run main.go

无go环境使用

./main

问题

如果images.yaml清单中的镜像tag过多的话有可能会遇到429报错

429 Too Many Requests - Server message: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit