docker error : the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty' [duplicate] docker error : the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty' [duplicate] windows windows

docker error : the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty' [duplicate]


As suggested by the error message you obtain, you should try to use winpty (which is installed by default with Git-Bash) and thus run:

winpty docker run --rm -v "/c/users/vipul rao/documents/github/wappalyzer:/opt/wappalyzer" -it wappalyzer/dev

If this works, you may want to set a Bash alias to avoid manually prepending winpty all the time:

echo "alias docker='winpty docker'" >> ~/.bashrc

or

echo "alias docker='winpty docker'" >> ~/.bash_profile


If you are using Git Bash you can try like this

winpty docker run -it ubuntu


This problem occurs when running with -it option using bash terminal on windows. You can use Powershell to resolve this issue.