-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--interactive fails on Ubuntu 18.04 #134
Comments
Thank you for the report! I can confirm that interactive mode fails in an Ubuntu 18.04 VM with docker version 18.06.1-ce. However, the issue won't be a bash/dash/sh difference. x11docker generates some I'll investigate. |
I thought I had a demonstration of different behavior when I replace dash by bash, but I must have made a mistake. Also, now I cannot reproduce my last statement: "but for the command docker exec -it /bin/bash, the shell running in the container gives a prompt and then immediately exits". You're right that the central problem is that --interactive fails on Ubuntu. |
It seems this bug was introduced with the fix for #133.
with:
docker sometimes gives |
Well, certainly you found and fixed a bug, but for me the problem with --interactive remains. I added your fix to two versions of x11docker (git commits 00ee566 and 92f1283). For both, the command
hangs as I described before, despite the log report that "Host PID of container PID 1: 617". |
I cannot reproduce the bug in Ubuntu 18.04 VM now. Can you provide me |
On an Ubuntu 18.04 machine, I ran
where
The
|
The log does not show an obvious issue. bash is running. Side note: Just for clarification: |
behaves the same as with /bin/bash. But let me explain a bit more about that behavior. Using ^Z and Should we be using the
On the host I'm running Gnome, and I'm launching from a
Well,
Thanks for the clarification. I didn't realize that the option order would matter. P.S. I very much appreciate your help on this problem, and I'm happy to keep running experiments at your direction as long as you want. I understand that it's onerous to debug a problem that you cannot reproduce on your own computer. Hmm, perhaps I'll test with Ubuntu running on different hardware. |
I put a fresh copy of Ubuntu 18.04 on a different (newer) computer, downloaded docker, and installed the 00ee566 commit of It seems that the problem I'm having with Sorry! I hope I didn't waste too much of your time. I have yet to upgrade the Ubuntu software on the newer computer (its software installation is not yet very close to that on the older computer). Presumably Again, thanks for your help. Your software will play a critical role in allowing me and my international colleagues to deploy our mathematical fluid dynamics graphics program to other researchers. (We'll be sure to cite your contribution.) |
Good to know, thank you for the test! My Ubuntu 18.04 VM was quite old, I've made an update, still no issue here. The latest commit in master contains a fixed PID1-check, you won't need to add it yourself now.
It is still odd. TTY input/output is some basic procedure that should not behave different on different computers or system versions.
No worry! There has been one real bug causing this issue. Why it still fails on one particular computer is a remaining riddle.
That is a honour, thanks! Edit:
It might have been a false error message due to a race condition if you terminated x11docker faster than xpra server was ready. The latest commit should avoid the error message for this case. |
The
bash
scriptx11docker
sometimes invokessh
or/bin/sh
rather thanbash
or/bin/bash
. On a host system such as Fedora 29,/bin/sh
is the same as/bin/bash
, but on an Ubuntu 18.04 host,/bin/sh
is/bin/dash
, which is different from/bin/bash
.This fact causes
x11docker
5.4.5-beta to behave differently for Fedora 29 and Ubuntu 18.04 hosts (where Fedora has docker 18.06.0-dev and Ubuntu has docker 18.06.1-ce). For example, on a Fedora 29 host, the behavior ofis similar to that of
(both running an interactive
bash
session in the Ubuntu container). In contrast, on an Ubuntu 18.04 host, thex11docker
command hangs. (It is not responsive to input, and it gives no output. If it is put into the background, it can be accessed using adocker exec
command, saydocker exec -it <container> ls /
, but for the commanddocker exec -it <container> /bin/bash
, the shell running in the container gives a prompt and then immediately exits.)The text was updated successfully, but these errors were encountered: