我有这个:
docker login -u AWS --password-stdin https://aws_account_id.dkr.ecr.us-east-1.amazonaws.com
Error: Cannot perform an interactive login from a non TTY device
Build step 'Execute shell' marked build as failure
我们如何在 Jenkins 服务器上运行 docker login (或等效的)?
我能够通过使用解决这个问题:
eval "$(aws ecr get-login --no-include-email --region ${region} --profile ${profile})"
但是在我尝试运行后出现此错误docker push
:
没有基本的身份验证凭据