-
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
[Remote-Container Bug] postStartCommand hangs indefinitely when the x11-unix socket is mounted as volume #10014
Comments
Please append the Dev Containers log from when this happens. ( |
I just saw the following in the log:
Might this be the issue, that it aborts after this error? I also set the volume mount to Here is the full log: Edit: As a side-note, the reason why I manually mount the x11 socket into the container is performance. If I do not mount it, only a wayland mount is created in the container and when I then run an UI application (eg. |
Tracking the performance issue in #10016. I will fix this issue by skipping the X11 forwarding when the container has a DISPLAY env variable set. |
That is great and would fix this issue. My current work-around is to use another X11 index (10 for example) from inside the container and redirect it to X0 from WSL and also create the Concretely like that:
|
This is now available with Dev Containers 0.376.0-pre-release. Please give it a try and let me know how it goes. |
Hi @Roemer! Just a bump to see if you re you able to verify if this fix works. You can do so by getting the latest pre-release version of the Dev Containers extension. Appreciate any help, thanks! |
@chrmarti @eleanorjboyd I just tried with pre-release v0.378.0 and it indeed fixed this issue, the postStartCommand does run correctly. |
I have a simple dev-container which just consists of a
postStartCommand
and adds a volume mount to the/tmp/.X11-unix
socket (the socket is needed because otherwise UI applications like Cypress are extremely slow).In that case, the
Configuring Dev Container
hangs indefinitely. If I remove the x11 socket mount, thepostStartCommand
executes successfully and the container finishes initialization.Steps to Reproduce:
devcontainer.json
file like:Dockerfile
with justFROM debian
as contentConfiguring Dev Container
never finishes andhello
is not visible in the log output"-v", "/tmp/.X11-unix:/tmp/.X11-unix"
and rebuild the dev-containerhello
is written in the output and the container finishes initializationDoes this issue occur when you try this locally?: Yes
Does this issue occur when you try this locally and all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: