mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-11 21:10:25 +01:00
Docker does not start: (qemu) gtk initialization failed #606
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 @ennrl on GitHub (Jul 18, 2024).
NAME="Manjaro Linux"
PRETTY_NAME="Manjaro Linux"
Файловая система Размер Использовано Дост Использовано% Cмонтировано в
/dev/nvme0n1p2 225G 119G 95G 56% /
QEMU emulator version 9.0.1
Copyright (c) 2003-2024 Fabrice Bellard and the QEMU Project developers
libvirtd (libvirt) 10.5.0
free: Multiple unit options don't make sense.
4
egrep: warning: egrep is obsolescent; using grep -E
8
crw-rw-rw- 1 root kvm 10, 232 июл 18 02:30 /dev/kvm
итого 0
drwxrwxrwt 2 root root 120 июл 18 02:23 .
drwxrwxrwt 17 root root 420 июл 18 02:33 ..
srwxr-xr-x 1 akkenrl akkenrl 0 июл 18 02:23 X0
srwxr-xr-x 1 akkenrl akkenrl 0 июл 18 02:23 X1
srwxr-xr-x 1 gdm gdm 0 июл 18 02:23 X1024
srwxr-xr-x 1 gdm gdm 0 июл 18 02:23 X1025
root 1213 0.0 0.9 2347780 77164 ? Ssl 02:23 0:00 /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
akkenrl 5555 0.0 0.0 6640 4340 pts/1 S+ 02:33 0:00 grep dockerd
Command:
sudo docker run --privileged -e "DISPLAY=${DISPLAY:-:0.0}" -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx
Output:
ssh-keygen: generating new host keys: RSA ECDSA ED25519
++ id -u
++ id -g
++ id -u
++ id -g
++ id -u
++ id -g
Authorization required, but no authorization protocol specified
QEMU 8.0.2 monitor - type 'help' for more information
(qemu) gtk initialization failed
@jdic commented on GitHub (Jul 25, 2024):
You need X11, possibly you are on Wayland, just install
xorg-hostusing these commands.To know your graphic environment:
echo $XDG_SESSION_TYPETry this
Allow Docker to access
xorg-host:@PixsaOJ commented on GitHub (Jul 26, 2024):
@jdic Can we not use it on Wayland or those are the steps to run it on Wayland?
@jdic commented on GitHub (Jul 26, 2024):
I'm on Wayland, and those steps solved my problem.
@Zero2wo commented on GitHub (Jul 31, 2024):
I have the same problem i am using fedora workstation on x11
what command should i run to show detalils
@PixsaOJ commented on GitHub (Jul 31, 2024):
xhost +or if you sudo
sudo xhost +@Zero2wo commented on GitHub (Jul 31, 2024):
Doesn't run
Here's the output
@ibraiiian commented on GitHub (Aug 3, 2024):
Madep
@Zero2wo commented on GitHub (Aug 5, 2024):
access control disabled, clients can connect from any host
@syorito-hatsuki commented on GitHub (Feb 8, 2025):
Yep. Same on Hyprland Wayland Linux. Tried run over this command. I remember that few weeks ago when I did it first time it at least run but boot was in loop
@jcubic commented on GitHub (Aug 30, 2025):
I've had the same problem. The issue was SELinux for me. Qemu tried to write into restricted file. Changing SELinux to permissive mode and ignoring that one error solved the issue for me. You can probably also follow the instruction in SELinux troubleshooter if you don't want to change SELinux permission.
I also did
xhost +local:dockerfrom @jdic second time I run docker, and I've picked Sonoma. Not sure if that make a difference, but the second time I noticed SELinux error.@GrauBlitz commented on GitHub (Oct 10, 2025):
and
did the trick for me on Manjaro Plasma with Wayland.