I'm trying to login ecr with docker to upload the container, but it always returns an error. The cli configuration is ok. I'm following the documentation that aws provides, but still to no avail.
Command login
aws ecr get-login-password \
--region REGION \
| docker login \
--username AWS \
--password-stdin "https://account-ID.dkr.ecr.REGION.amazonaws.com"
Return error
Unable to locate credentials. You can configure credentials by running "aws configure".
Error: Cannot perform an interactive login from a non TTY device
- ubuntu 22.04
- aws-cli/2.7.35