命令行前边加上 winpty     进容器的时候把/bin/sh或/bin/bash改成 sh 以及 bash就可以了

winpty docker exec -it nacos bash

  转载请注明来源:WBB » the input device is not a TTY. If you are using mintty, try prefixing the command with ‘winpty’ 解决方案

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐