---
title: "Comment by Dan Stein on \"Push your Docker containers from GitLab to Amazon ECR\" | Hashnode"
description: "Thanks for this! Im getting the error: Could not connect to the endpoint URL: &quot;https://api.ecr.eu-east-2.amazonaws.com/&quot; Error: Cannot perform an inte"
url: "https://hashnode.com/posts/push-your-docker-containers-from-gitlab-to-amazon-ecr/5ffc7523aa5c467fe155b129/comment/609717031ea29f2c341e08e8"
---

[Discussion](https://hashnode.com/posts/push-your-docker-containers-from-gitlab-to-amazon-ecr/5ffc7523aa5c467fe155b129)

Comment [Push your Docker containers from GitLab to Amazon ECR](https://hashnode.com/posts/push-your-docker-containers-from-gitlab-to-amazon-ecr/5ffc7523aa5c467fe155b129)

[Dan Stein](https://hashnode.com/@happy-machine)

[May 8, 2021](https://hashnode.com/posts/push-your-docker-containers-from-gitlab-to-amazon-ecr/5ffc7523aa5c467fe155b129/comment/609717031ea29f2c341e08e8)

Thanks for this!

Im getting the error: Could not connect to the endpoint URL: "[api.ecr.eu-east-2.amazonaws.com/"](https://api.ecr.eu-east-2.amazonaws.com/%22) Error: Cannot perform an interactive login from a non TTY device

Do you have any idea whats going wrong? All the env variables are populated correctly have tested theyre coming through

[DINA](https://hashnode.com/@cisel)

[May 17, 2021](https://hashnode.com/posts/push-your-docker-containers-from-gitlab-to-amazon-ecr/5ffc7523aa5c467fe155b129/comment/609717031ea29f2c341e08e8#reply-60a25848b66a0b15ebfcb58a)

Hi, Are you sure that your env variables are populated correctly on the right repo (each repo needs to have it's own environment variables set up) ? Can you try in local with the command aws ecr get-login-password ? It would help you to find out the problem. Maybe you need to upgrade your awscli or maybe there is a problem with the --region.

Hope it helps ! Best regards
