Blog Post

"the input device is not a TTY" error running docker on VSTS build agent

,

I have been playing around with including all my build dependencies in docker for windows lately and had a build that kept giving me this error in the build log:

“the input device is not a TTY. If you are using mintty, try prefixing the command with ‘winpty’”

The command I had been running was along the lines of:

docker exec -it powershell.exe ./some/script.ps1

The problem was that I was using -it which means “interactive” and “create a virtual TTY”, to run my script I needed neither of those so took them off.

Original post (opens in new tab)

Rate

You rated this post out of 5. Change rating

Share

Share

Rate

You rated this post out of 5. Change rating