mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-11 21:10:25 +01:00
gtk initialization issue #320
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 @deGekata on GitHub (Feb 6, 2022).
Tried all the steps in read.me
Info about system:
Allready tried methods listed here https://github.com/sickcodes/Docker-OSX/issues/7#issue-631280852 , but nothing worked for me. A day ago i successfully installed macOS Big Sur. I was using it for about 3 hours and turned off (from macOS menu). On the next day it wasn`t working (gtk initialization error). Hope this can be fixed, cause i need it for studying.
@sickcodes commented on GitHub (Feb 8, 2022):
Reasons for GTK error:
xhost +sudo chmod 666 /dev/kvmsudo docker run..., which means you need touseadd yourself to the Docker group and useDISPLAY=:0orDISPLAY=:0.0or whatever your currently display.docker runIf one of these fixes your issue, I'll add the above checklist to the README
@deGekata commented on GitHub (Feb 8, 2022):
Thanks for your reply
Still has the same output.
xhost + was already configured
tried both options:
sudo docker run -it --device /dev/kvm -p 50922:10022 -e GENERATE_UNIQUE=true -e DEVICE_MODEL="iMacPro1,1" -e WIDTH=1600 -e HEIGHT=900 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY:=0.0" sickcodes/docker-osx:big-surand
sudo docker run -it --device /dev/kvm -p 50922:10022 -e GENERATE_UNIQUE=true -e DEVICE_MODEL="iMacPro1,1" -e WIDTH=1600 -e HEIGHT=900 -v /tmp/.X11-unix:/tmp/.X11-unix -e "DISPLAY:=0" sickcodes/docker-osx:big-surAnd docker info output ( it seems im in docker group)
P.S.
For the previous installation changing
-itoption to-iworked for me (not now)@sickcodes commented on GitHub (Feb 10, 2022):
Because you're running sudo Docker run, remove sudo and add yourself to the Docker group
@deGekata commented on GitHub (Feb 10, 2022):
previously i added myself to docker group. Have the same output, here is the full output of comand:
https://pastebin.com/LEpgWUZH
@deephack1982 commented on GitHub (Feb 11, 2022):
I'm getting the same thing today and these commands worked as recently as 2 days ago for me. Is there some pertinent information I can provide? I've checked the following from your list.
@devyhia commented on GitHub (Feb 11, 2022):
I am also having the same issue.
@deephack1982 commented on GitHub (Feb 14, 2022):
If I omit mounting the .X11-unix socket and don't supply the DISPLAY parameter then everything works normally as a headless docker.
@JoeSSS commented on GitHub (Mar 9, 2022):
having the same issue, running it headless
docker run -it --device /dev/kvm -p 50922:10022 sickcodes/docker-osx:big-surdid not work too (our linux servers do not have a monitor and GPU, can it be a problem?)@JoeSSS commented on GitHub (Mar 9, 2022):
for me the problem was unavailable display I believe, everything works perfect with VNC (explained in the readme)
@EDemir-on commented on GitHub (Mar 10, 2022):
I had same issue. Docker was installed with snap, i uninstalled it and installed docker with apt and it worked.
@ryall commented on GitHub (Mar 23, 2022):
This fixed it for me, the $DISPLAY env var was invalid.
@ZGuQing commented on GitHub (Apr 11, 2022):
Have you solved it?
@Crazypersonalph commented on GitHub (May 4, 2022):
I seem to be having the same problem. I am running Windows with WSL2, and running the container is not working, with these exact same errors.
@Crazypersonalph commented on GitHub (May 4, 2022):
I've tried using VNC, and I can confirm using VNC works.
@garthfield commented on GitHub (Aug 28, 2023):
Running: xhost +
Solved the "gtk initialization failed" issue for me.
@sachithd commented on GitHub (Oct 30, 2023):
Thanks this worked for me too.
@gabegm commented on GitHub (Nov 22, 2023):
Currently facing this issue on SteamOS.
Is there a specific guide for setting this up on the Steam Deck?
@sun-jiao commented on GitHub (Nov 25, 2023):
xhost +works for me.