How to fix Error: Cannot perform an interactive login from a non TTY device

When trying to connect to amazon container services, ECR ( Elastic Container Registry), there are a few steps you need to configure first before successfully connecting, otherwise you will get the error like below.

Error: Cannot perform an interactive login from a non TTY device

check docker version, if no docker installed, install it first.
$docker –version

check AWS CLI version, if no AWS CLI installed, install link below.
https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html
$aws –version

Configure AWS CLI
$AWS configure
You will need Access Key ID and Secret Access Key

680501633545.dkr.ecr.us-west-1.amazonaws.com/repo1

for more information, please refer below link.



Leave a Reply

Your email address will not be published. Required fields are marked *