mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-14 07:33:30 +01:00
Error "gtk initialization failed" #9
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @miguelmota on GitHub (Jun 5, 2020).
Followed the steps on readme but getting an error when running docker container.
Here are the steps to reproduce:
Virtualization is enabled in bios:
Any help is appreciated. Thanks!
@sickcodes commented on GitHub (Jun 5, 2020):
Working on it
@raoulh commented on GitHub (Jun 5, 2020):
Same here. I did this to make it work:
Then disable access control from X11:
And run the docker command again. It worked then.
@sickcodes commented on GitHub (Jun 5, 2020):
Thanks Raoulh!
@sickcodes commented on GitHub (Jun 5, 2020):
Worked a treat! @raoulh
@iiordanov commented on GitHub (Nov 23, 2021):
@sickcodes thanks for your awesome work!
Just in case this helps people who would like to run this headless. I saw that there is a really helpful EXTRA variable that may be utilized to start qemu's built-in VNC server. For instance:
sudo docker run -it --device /dev/kvm -p5910:5900 -p 50922:10022 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY=${DISPLAY:-:0.0}" -e GENERATE_UNIQUE=true -e TERMS_OF_USE=i_agree -e EXTRA='-vnc :0' sickcodes/docker-osx:auto
Will run docker-osx:auto with VNC port 5910 on the host machine forwarded to qemu's VNC server started at 5900 as per the EXTRA variable. The default VNC password appears to be alpine.
@gopalkhasria commented on GitHub (Nov 14, 2024):
I am getting this on windows. Is there a way to wix it?
@5E7EN commented on GitHub (Nov 28, 2024):
@gopalkhasria
I've got it working using the updated command found in PR #774.