无法使用 AWS ecr 凭证从 gitlab 连接到 docker

时间:2021-05-08 23:02:57

标签: docker gitlab continuous-integration amazon-ecr

我正在尝试让我的 gitlab 存储库连接到 ECR 并上传图像作为 CICD 的一部分

此命令失败:

aws ecr get-login-password | docker login --username AWS --password-stdin $DOCKER_REGISTRY

我们得到这个错误:

Could not connect to the endpoint URL: "https://api.ecr.eu-east-2.amazonaws.com/"
Error: Cannot perform an interactive login from a non TTY device

我知道 env 变量正常,运行程序是一台 linux 机器。有人可以帮忙吗?

0 个答案:

没有答案