Fix tty settings#1272
Conversation
|
@datawolf The problem is that expecting However, IMO if you want to ensure that a certain flag is set on the TTY then use Also please don't use |
For the detached containers, if we use after update the it looks like: My and Because we set the @cyphar what do you think about it? |
b1559f1 to
afe8ed3
Compare
Signed-off-by: Wang Long <long.wanglong@huawei.com>
Signed-off-by: Wang Long <long.wanglong@huawei.com>
afe8ed3 to
35c3b32
Compare
|
after update the |
|
Move appendant OPOST from vendor package to runc package doesn't look right to me, we shouldn't have OPOST in the first place. We should figure out what's the right way for outputs in linux raw terminal. |
|
I thought more on this and think maybe we should not change the default behavior on linux raw terminal. See moby/moby#30156 (comment) . So I think maybe we should update term package in vendor to remove the OPOST for raw terminal, and revert the |
|
@hqhq The reason why Remove and |
|
To answer this comment:
I disagree. Why are we outputting random junk to a terminal when there's already another terminal emulator in front of it which also has a I'm going to look at this tomorrow, but I get the feeling the issue is actually to do with terminal emulators and not runC... |
|
The problem is the docker term package and the vendored one from docker in runc are out of sync. Someone removed the OPOST in docker and that is causing the terms to be out of sync. I think the OPOST should be added back but am looking into it. |
|
This has been resolved. I have synced the two term packages with the OPOST change and verified it works with |
When integrating the newest runc with docker and containerd, we found an io issue if we running a container with a tty(
-t/--tty).the command is
docker run -ti hello-worldthe issue looks like:
It took me a long time to solve the problem, the bug is that
runc's output is not correct when we running a container with a tty(-t/--tty).