mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-11 21:10:25 +01:00
Docker fails to start #108
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 @Otus9051 on GitHub (Jan 20, 2021).
Whenever I am trying the start OSX with this command
This happens
This is my
uname -aThe distro I am using is
Garuda Linuxbased onArch Linuxwith5.10.7-111-TKG-BMQ Kernel@wulei-github commented on GitHub (Jan 23, 2021):
add sudo docker run
@Otus9051 commented on GitHub (Jan 23, 2021):
Forgot to include that I did do it, but it didn't work and the error was same.
@sickcodes commented on GitHub (Jan 25, 2021):
sudo dockerdYour docker daemon is off
@Otus9051 commented on GitHub (Jan 25, 2021):
@sickcodes well i did do
sudo dockerdDunno what is with up with my OS
@sickcodes commented on GitHub (Jan 25, 2021):
You have a trailing space after
docker run \_@Otus9051 commented on GitHub (Jan 27, 2021):
@sickcodes
@sickcodes commented on GitHub (Jan 27, 2021):
docker run --device /dev/kvm --device /dev/snd -v /tmp/X11-unix:/tmp/X11-unix -e "DISPLAY=${DISPLAY:-:0.0}" sickcodes/docker-osx:latestYou have a trailing space on the first line.
@Otus9051 commented on GitHub (Jan 29, 2021):
@sickcodes
(I couldn't copy paste it as i cant figure out how to)
@Silfalion commented on GitHub (Jan 30, 2021):
Tried
xhost +?@Otus9051 commented on GitHub (Jan 30, 2021):
What's that?
@Silfalion commented on GitHub (Jan 30, 2021):
Run it in your terminal then run your docker command
@Otus9051 commented on GitHub (Jan 30, 2021):
nope. same thing.
@sickcodes commented on GitHub (Jan 30, 2021):
echo $DISPLAYIf this is blank you have no screen.
egrep -c '(svm|vmx)' /proc/cpuinfoIf this is 0, turn on hardware virt in your bios.
@Otus9051 commented on GitHub (Jan 30, 2021):
@sickcodes commented on GitHub (Feb 2, 2021):
This happens when dockerd is off
Can you confirm the docker daemon is running?
pgrep dockerd@Otus9051 commented on GitHub (Feb 3, 2021):
@Otus9051 commented on GitHub (Feb 3, 2021):
Actually this error doesn't happen now
Something is up with ALSA
@Otus9051 commented on GitHub (Feb 3, 2021):
I'll try the troubleshooting commands from the README.md
See if that works...
@sickcodes commented on GitHub (Feb 3, 2021):
Sounds good! Can you let us know when you've fixed it?
@Otus9051 commented on GitHub (Feb 4, 2021):
Welp... I gave up on it and decided to install the prebuilt image and now, the error is kinda like this...
And this loops on and on and in until terminated...
@sickcodes commented on GitHub (Feb 4, 2021):
Remove the OSX_COMMANDS line because it will close the image
@Otus9051 commented on GitHub (Feb 5, 2021):
@mostwanted002 commented on GitHub (Mar 12, 2021):
The same is happening with me when I'm trying to use
docker-osx:auto.And it givesgtk initialization has failedwhen runningdocker-osx:latest.The
docker-osx:latestworked. had to runxhost +prior running the commands.@sickcodes commented on GitHub (Mar 13, 2021):
@mostwanted002 @Otus9051
-e "OSX_COMMANDS=/bin/bash -c \"pwd && uname -a\"" \Will run, inside Mac's Terminal:
bin/bash -c "pwd && uname -a"pwd is print working directory
uname -a will print system info
Then it will exit, the entire container.
Remove that line if you want to stay running, or add
&& /bin/bashat the end@gab3-dev commented on GitHub (Mar 14, 2021):
I'm trying to run but i got this error
Unable to init server: Could not connect: Connection refused qemu-system-x86_64: cannot set up guest memory 'pc.ram': Cannot allocate memory QEMU 5.2.0 monitor - type 'help' for more information (qemu)Can anyone help me?
I am trying the start OSX with this command
sudo docker run --device /dev/kvm --device /dev/snd -v /tmp/X11-unix:/tmp/X11-unix -e "DISPLAY=${DISPLAY:-:0.0}" sickcodes/docker-osx:latest@sickcodes commented on GitHub (Mar 14, 2021):
Connect refused is either /dev/kvm permissions, xhost +, or you're not in libvirt, docker or kvm groups, or you're running with root
@gab3-dev commented on GitHub (Mar 15, 2021):
I've tried to run now but I got this error
gtk initialization failed@BackMountainDevil commented on GitHub (Jul 2, 2021):
it is not recommand to run docker with sudo. It may be dangerous
@allansrc commented on GitHub (Jul 23, 2021):
who is running on WSL, and are getting stuck on
docker: unknown server OS: .must to use Docker on Windows Client and extern it to wsl v2
check https://docs.docker.com/docker-for-windows/wsl/
make sure that your distro is enabled
after that, You can run it perfectly.
@sickcodes commented on GitHub (Jul 23, 2021):
Fantastic! It runs perfectly now? Thank you for letting us know :)
@allansrc commented on GitHub (Jul 23, 2021):
Yep I just test on Windowns 10 21H1 and also on windows 11. runs good
@sickcodes commented on GitHub (Jul 24, 2021):
Fantastic, thank you! And thank you for https://github.com/sickcodes/Docker-OSX/pull/318
@korhun commented on GitHub (Dec 21, 2021):
Using the latest Windows 11 updates I could not make it work. I was successfully using Catalina a couple of weeks ago.
@pedro3g commented on GitHub (Jan 26, 2024):
I solved my problem by running as sudo.
@dimashpt commented on GitHub (Jan 17, 2025):
Been 4 years, and still works like a charm, thank you!