最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

amazon web services - Allowing ECR Credentials to persist inside Jenkins Docker Cloud configuration - Stack Overflow

programmeradmin0浏览0评论

I'm setting up a Docker Cloud (for dynamically assigning container agents) using the Docker plugin /

Some of my images are saved on our AWS account's ECR, and I can't store persistent ECR credentials to fit this format, the Jenkins cloud configuration asks for -

I expected some workaround to exist, but instead I just simply can't pull images from ECR given I can't use anything like docker.withRegistry Since we're talking about configuration and not something inside the pipeline code. Anyone encountered enything similar? Or got any ideas on how to deal with it? Thanks!

I'm setting up a Docker Cloud (for dynamically assigning container agents) using the Docker plugin https://plugins.jenkins.io/docker-plugin/

Some of my images are saved on our AWS account's ECR, and I can't store persistent ECR credentials to fit this format, the Jenkins cloud configuration asks for -

I expected some workaround to exist, but instead I just simply can't pull images from ECR given I can't use anything like docker.withRegistry Since we're talking about configuration and not something inside the pipeline code. Anyone encountered enything similar? Or got any ideas on how to deal with it? Thanks!

Share Improve this question asked Nov 19, 2024 at 17:44 doralmdoralm 34 bronze badges 2
  • "I can't store persistent ECR credentials to fit this format, the Jenkins cloud configuration asks for -" in what format are your credentials that Jenkins cannot store them? – Iterokun Commented Nov 20, 2024 at 12:41
  • I'm using the docker cloud plugin - Which requires a persistent set of cerdentials as part of Jenkins' credentials to be passed for the image templates as registry credetnials. This means that unless I want to manually generate a new token once every 8hrs, I won't be able to implement the dynamic ECR tokens. – doralm Commented Nov 20, 2024 at 13:02
Add a comment  | 

1 Answer 1

Reset to default 0

Take a look at the aws-credentials plugin. It should be able to story any kind of AWS credentials and provide them for the registry auth.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论