Docker keeps complaining about the input device is not TTY || Using Windows-10 and using GitBash entering in the command $ docker run -ti ubuntu:latest bash

I’m using Windows-10 and using GitBash entering in the command

$ docker run -ti ubuntu:latest bash

And it gives me this error message “the input device is not a TTY. If you are using mintty, try prefixing the command with ‘winpty’”

And so I placed in this command to switch to winpty $ winpty docker.exe run -it --rm ubuntu:14.04 /bin/bash and it still doesn’t work. I know my ports are running correctly, and I installed ubuntu correctly.