Docker cannot open pseudo terminal solution under windows

After installing docker under windows, the operation docker run -it ubuntu /bin/bashfails and the error "cannot enable tty mode on non tty input" is displayed.
Reference link to solve the problem

in conclusion

I have used both options myself with success.
The first is to add winpty in front of the command

winpty docker run -it ubuntu

The second option is better (why feel it for yourself)

docker-machine ssh defaultdocker run -it ubuntu /bin/bash

Some specific reasons and principles are mentioned in the link above, but I just pay attention to the problem has been solved, so I did not look carefully. Roughly, this problem is generated by tools such as MINGW64, not by docker itself. And this issue has not been closed, so there should be a better solution in the future.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327095526&siteId=291194637
Recommended