aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKimJammer <[email protected]>2021-11-28 21:42:37 -0500
committerGitHub <[email protected]>2021-11-28 21:42:37 -0500
commit8dc03683e1503909c6de1bc2668052da1e0b9066 (patch)
tree2f410dcbb37dcf547c654149c114d9e2015f296e
parentMerge pull request #392 from martinmullins/patch-1 (diff)
downloaddocker-osx-8dc03683e1503909c6de1bc2668052da1e0b9066.tar.xz
docker-osx-8dc03683e1503909c6de1bc2668052da1e0b9066.zip
readme - Instructions to use WSLg's built-in X11 server
Add instructions for using correct DISPLAY value and X-11 socket mount point to use WSLg's built-in X11 server on Windows 11.
-rw-r--r--README.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/README.md b/README.md
index 2b17614..00be8d8 100644
--- a/README.md
+++ b/README.md
@@ -1184,9 +1184,16 @@ Running Docker-OSX on windows is possible just in WSL2 (Windows, Ubuntu).
Ensure KVM is enabled and `x11-apps` is installed.
-to void troubles related to docker daemons on WLS 2, use Docker on Windows, and extern it to your distro.
+To void troubles related to docker daemons on WLS 2, use Docker on Windows, and extern it to your distro.
See Docker Docs for the complete detail setup [here](https://docs.docker.com/docker-for-windows/wsl/)
+#### Using WSLg
+
+To use WSLg's built in X11 server, change these two lines to point Docker-OSX to it.
+
+`-e "DISPLAY=${DISPLAY:-:0}" \`
+`-v /mnt/wslg/.X11-unix:/tmp/.X11-unix \`
+
See more in-depth discussion [here](https://github.com/sickcodes/Docker-OSX/issues/17) and [here](https://github.com/sickcodes/Docker-OSX/issues/60).