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

dockermobaxtermtty

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

Best Answer

Try adding "winpty" before the "docker ..." command.

It enables TTY on Window. Useful for GitBash, Putty and MobaXTerm.

Related Question