Mac Container的Docker缺少回车 [英] Missing Carriage Return in Docker for Mac Containers
问题描述
突然之间,我所有的 docker / docker-compys exec / run
命令是打印缺少回车的日志,因为缩进而无法读取命令行(见下图)
我将Docker重新安装到出厂设置,但没有修复任何东西。
更新
这是一个活跃的问题,在
要解决Docker中最近的回归,请执行:
stty onlcr
在每个换行符之后添加一个隐式回车。
CharlessMacBook:〜cduffy $ docker运行-t -i bash
bash-4.4#
bash-4.4#
bash-4.4#stty onlcr
bash-4.4#
bash-4.4#
bash-4.4#
All of a sudden all of my docker/docker-compose exec/run
commands are printing logs that are lacking a carriage return making command line impossible to read due to indentation (see photos below).
I re-installed docker to factory settings, but that didn't fix anything.
where else should I look to solve this sort of problem?
Update This is an active issue in docker-for-mac.
I just updated to 17.06.0-rc1-ce-mac13 and that is when I started having the problems.
Also, can you leave a comment if you are voting to close?
To work around this recent regression in Docker, execute:
stty onlcr
This adds an implicit carriage return after each newline.
CharlessMacBook:~ cduffy$ docker run -t -i bash
bash-4.4#
bash-4.4#
bash-4.4# stty onlcr
bash-4.4#
bash-4.4#
bash-4.4#
这篇关于Mac Container的Docker缺少回车的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!