I am using Mobaxterm and starting a local bash terminal, and trying this command. But seeing an error. The same command is working from the cmd windows prompt or powershell. Any suggestions on workarounds, really appreciate it. I played with some settings that are already in the mobaxterm, but none worked.

/home/mobaxterm>docker login abcdef.azurecr.io
Error: Cannot perform an interactive login from a non TTY device

This is a docker error. Each Repo needs to have it's own environment variables set up. If you don't set up the DOCKER_USERNAME and DOCKER_PASSWORD in your model in the Repository settings, it would raise that confusing docker terminal (tty) error.


For me, the issue was with AWS ECR and I simply needed to update my aws cli.

New contributor
Wayne F. Kaskie is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.