push image to ecr
push image to ecr

我们将 docker 镜像仓库由 harbor 改成 AWS ECR,如何推送镜像? Retrieve an authentication token and authenticate your Docker client to your registry. Use the AWS CLI: aws ecr get-login-password --region ap-east-1 | docker login --username AWS --password-stdin <aws account>.dkr.ecr.<region>.amazonaws.com 如此我们不仅要改变原有 DSL 结构,并且还需要手动安装 aws cli , 还有安全凭证泄露的风险。 我们在不改变原有结构的情况下,同时兼容两种镜像仓库的管理呢? Amazon ECR 插件实现了 Docker Token 生成器,将 Amazon 凭证转换为 Jenkins 的 API,该... » read more