Actually, we can simply run Docker-OSX on WSL2 without getting into distros (just using PowerShell),and it fixed issue #430.
Let me explain that:
When using Docker Desktop on windows,it created two speical distros called docker-desktop and docker-desktop-data
In other distros,Wslg is in /mnt/wslg
But in docker-desktop,Wslg is in /mnt/host/wslg
What is worse is that the container actually boot in docker-desktop-data,and then /mnt in docker-desktop was mounted to /run/desktop in docker-desktop-data.
Therefore,we actually need to mount /run/desktop/mnt/host/wslg/.X11-unix to /tmp/.X11-unix to get video output.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/sickcodes/Docker-OSX/pull/774
**Author:** [@KernelInterrupt](https://github.com/KernelInterrupt)
**Created:** 5/28/2024
**Status:** 🔄 Open
**Base:** `master` ← **Head:** `master`
---
### 📝 Commits (1)
- [`18310cc`](https://github.com/sickcodes/Docker-OSX/commit/18310cca378b9945f05c65c77724a885826fffff) Update README.md
### 📊 Changes
**1 file changed** (+21 additions, -0 deletions)
<details>
<summary>View changed files</summary>
📝 `README.md` (+21 -0)
</details>
### 📄 Description
Actually, we can simply run Docker-OSX on WSL2 without getting into distros (just using PowerShell),and it fixed issue #430.
Let me explain that:
When using Docker Desktop on windows,it created two speical distros called `docker-desktop` and `docker-desktop-data`
In other distros,Wslg is in `/mnt/wslg`
But in `docker-desktop`,Wslg is in `/mnt/host/wslg`
What is worse is that the container actually boot in `docker-desktop-data`,and then `/mnt` in `docker-desktop` was mounted to `/run/desktop` in `docker-desktop-data`.
Therefore,we actually need to mount `/run/desktop/mnt/host/wslg/.X11-unix` to `/tmp/.X11-unix` to get video output.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/sickcodes/Docker-OSX/pull/774
Author: @KernelInterrupt
Created: 5/28/2024
Status: 🔄 Open
Base:
master← Head:master📝 Commits (1)
18310ccUpdate README.md📊 Changes
1 file changed (+21 additions, -0 deletions)
View changed files
📝
README.md(+21 -0)📄 Description
Actually, we can simply run Docker-OSX on WSL2 without getting into distros (just using PowerShell),and it fixed issue #430.
Let me explain that:
When using Docker Desktop on windows,it created two speical distros called
docker-desktopanddocker-desktop-dataIn other distros,Wslg is in
/mnt/wslgBut in
docker-desktop,Wslg is in/mnt/host/wslgWhat is worse is that the container actually boot in
docker-desktop-data,and then/mntindocker-desktopwas mounted to/run/desktopindocker-desktop-data.Therefore,we actually need to mount
/run/desktop/mnt/host/wslg/.X11-unixto/tmp/.X11-unixto get video output.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.