Docker for Mac 容器中缺少回车 [英] Missing Carriage Return in Docker for Mac Containers
问题描述
突然间,我所有的 docker/docker-compose exec/run
命令都在打印缺少回车符的日志,这使得命令行由于缩进而无法读取(见下图).
我将 docker 重新安装到出厂设置,但这并没有解决任何问题.
我还应该在哪里寻找解决此类问题的方法?
更新这是
要解决 Docker 中最近的回归问题,请执行:
stty onlcr
这会在每个换行符后添加一个隐式回车符.
CharlessMacBook:~ cduffy$ docker run -t -i bashbash-4.4#bash-4.4#bash-4.4# stty onlcrbash-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#
这篇关于Docker for Mac 容器中缺少回车的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!