【发布时间】:2019-03-17 19:36:54
【问题描述】:
我正在从一个 ec2 映像运行 jenkins 并构建一个 docker 映像以推送到 ecr
我不断收到此错误
Running shell script
+ aws ecr get-login --no-include-email --region us-east-2
Unable to locate credentials. You can configure credentials by running "aws configure".
我已尝试创建凭据文件 即
touch ~/.aws/credentials and echo >> to the file
我试过了
--build-arg AWS_ACCESS_KEY_ID=xxxxxxx
我也将我的凭据添加到 Jenkins 中
如有任何帮助,将不胜感激
【问题讨论】:
-
您是否将 Jenkins 作为容器运行?
-
Jenkins 在一个 ec2 实例上运行
标签: amazon-web-services docker jenkins amazon-ecs