Open sonook opened 2 years ago
I am having this same issue
i am able to run finally after hours of troubleshooting. I have used VNC method.
This is the gtk initialization failed
error, I'm gonna work on the windows instructions, have you jumped in the discord? Link on http://sick.chat and we're working on making Windows instructions better
I run on wsl2g Everytime. I launch the docker command from Ubuntu.
I run on wsl2g Everytime. I launch the docker command from Ubuntu.
I agree. Had issues running it within Windows, but from Ubuntu WSL2, no issues
Hey,
if you used WSL2 under Windows 10 previously and upgraded to Windows 11 via windows update (no clean w11 installation): you need to update your WSL2 VM first.
# Update WSL2 (run powershell with administrator privileges)
wsl --update
# Shut any down all VMs
wsl --shutdown
# Wait at least 8 seconds. See for more info: https://docs.microsoft.com/en-us/windows/wsl/wsl-config#the-8-second-rule
# Start wsl again
wsl
# Test if display output works now
xeyes
# Run your docker container
docker run -it \
--device /dev/kvm \
-p 50922:10022 \
-e "DISPLAY=${DISPLAY:-:0}" \
-v /mnt/wslg/.X11-unix:/tmp/.X11-unix \
sickcodes/docker-osx:latest
Hope this helps :)
Hey,
if you used WSL2 under Windows 10 previously and upgraded to Windows 11 via windows update (no clean w11 installation): you need to update your WSL2 VM first.
# Update WSL2 (run powershell with administrator privileges) wsl --update # Shut any down all VMs wsl --shutdown # Wait at least 8 seconds. See for more info: https://docs.microsoft.com/en-us/windows/wsl/wsl-config#the-8-second-rule # Start wsl again wsl # Test if display output works now xeyes # Run your docker container docker run -it \ --device /dev/kvm \ -p 50922:10022 \ -e "DISPLAY=${DISPLAY:-:0}" \ -v /mnt/wslg/.X11-unix:/tmp/.X11-unix \ sickcodes/docker-osx:latest
Hope this helps :)
Worked for me. But before that, I manually switched to WSL 1 and didn’t update from 10 to 11. Thanks!
Hi,
i have followed all the steps in windows 11 for running Docker-OSX on WSL but getting below error.
root@5CD1407WWJ:/mnt/c/Users/sonook# docker run -it \