-
Notifications
You must be signed in to change notification settings - Fork 31
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
--mount is not compliant with Docker Desktop, results in error #26
Comments
This root cause is that Neither OrbStack nor Docker Desktop supports forwarding Unix sockets through bind mounts, so even if the directory is mounted correctly, you can't connect to the socket. I plan to explore how feasible it would be to implement this in the future, but it's a very difficult problem (for several reasons) that can usually be worked around easily by using TCP instead. Your first command works because Unlike Until the next version is released, you should be able to work around the issue by removing the |
Thanks you @kdrag0n for this explanation, it makes way more sense now. I still have a last question, is the implementation of docker desktop on Windows different than the one on macOs ? Because (I would have to double check but) on Windows I manage to mount Unix socket from the WSL2 environment (the same x11 socket from WSLg), maybe WSL2 have a custom bypass / implementation ? |
Very interesting read , thank you very much ! |
@Dramelac Mounting the WSLg socket works because the Xwayland and Wayland servers are running on the Linux side, whereas the XQuartz server is running on macOS in this case. Microsoft uses RDP to stream windows from Linux instead of passing through an X/Wayland server. |
Describe the bug
Using --mount instead of -v results in an error.
This error was discovered while trying to run GUI apps within containers. Mounting the x11 sock using -v works, but doing so with --mount does not.
To Reproduce
Steps to reproduce the behavior:
docker run -it --env="DISPLAY=host.docker.internal:0" -v /tmp/.X11-unix:/tmp/.X11-unix:rw ubuntu
docker run --rm --name tmp -it --mount 'type=bind,src=/tmp/.X11-unix,dst=/tmp/.X11-unix' debian bash
Do note that those two commands work in Docker Desktop
Expected behavior
--mount working like in Docker Desktop
Screenshots
Logs
N/A
System info
Additional context
This is the root cause for this exchange we had on Mastodon
This issue was first opened on Exegol
The text was updated successfully, but these errors were encountered: