-
Notifications
You must be signed in to change notification settings - Fork 287
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
Immediate bash segfault ExitCode 139 with centos:6.10 containers #7284
Comments
Sorry I don't really understand WSL but this is correct?
|
I'm seeing the same issue with Docker Desktop 2.3.0.3 (45519), Windows 10 Pro version 2004 (OS build 19041.329) and having switched to use Docker's support for WSL2 today (i.e. "Use the WSL 2 based engine" is ticked).
However this issue isn't just limited to centos6.n; I get the same with Debian-wheezy. So my hunch is Windows' WSL2 kernel is too new for these older Linux distros. I also get exit code 139 and no container logs.
Whilst
I don't think you've done anything wrong here. This just means that you don't have any other WSL2 based containers running/installed. If you do (for example I have Ubuntu 18.04 installed on WSL2) then you'll also have the ability to use Ubuntu for your Docker WSL2 engine. But if not, it'll just use |
I'm getting the same thing (segfault, 139) from an Oracle Linux 6.10 container with Docker Desktop 2.3.0.3 (45519), Windows 10 Pro Version 2004 (OS Build 19041.329), and using the WSL 2 engine. Symptoms are identical to those of @TristanPerry above, i.e., no logs, no output, almost immediate segfault. Same occurs whether I run interactive or detached, as well as whether I override the entrypoint or try to start a bash session via the command. |
Apparently this is a known WSL 2 (and really more like a vsyscall kernel incompatibility) issue with a workaround: (I'm shut down for the weekend and haven't tried the workaround, but it seems safe to assume this is a WSL issue and not a Docker issue.) |
Thanks @billybooth, that workaround has resolved my issues :) |
Workaround fixed it for me as well, thanks @billybooth ! |
Thanks for the solution, @billybooth. I'm going to close this ticket now as it turned out to be a WSL issue. |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
Should be able to start a centos:6.10 bash shell. I can on Docker for Mac and Linux and I can start later centos 7 and 8 bash shells on Windows.
Actual behavior
A recent Docker for Desktop Windows release or maybe WSL2 has problems with centos:6 images. I can't even start a bash shell, the container exits immediately. I think this is why my real image based on centos:6.10 is failing startup.
Information
Steps to reproduce the behavior
winpty docker run -ti --entrypoint bash centos:6.10
immediately exits anddocker ps -a
shows:The exact same command with centos:7.7.1908 or centos:8 works fine. I think there's some incompatibility between centos:6 images and WSL2. This is an inspect of the container:
inspect.txt
It seems
bash
causes a segfault?!dash
works.Btw I see the message "You don't have any WSL 2 distro" under "Resources
WSL Integration" and I have "Enable WSL integration" checked. Did I miss a step? I just installed https://docs.microsoft.com/en-us/windows/wsl/wsl2-kernel but no difference.
I would think this is a problem with my environment but a colleague noticed it first.
Hopefully there is a workaround this breaks existing applications.
The text was updated successfully, but these errors were encountered: