从源清单中把docker镜像指定的tag构建为指定的platform并推送到指定的容器平台上
| .gitignore | ||
| go.mod | ||
| go.sum | ||
| images.yaml | ||
| main | ||
| main.go | ||
| README.md | ||
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