team city command line build step "the input device is not a TTY" but terminal works fine code example
Example: the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty'
winpty docker run -it ubuntu
winpty docker run -it ubuntu