
Turn on docker daemon sudo nohup dockerd &Ĭheck /dev/kvm permissions sudo chmod 666 /dev/kvm Try adding yourself to the docker group sudo usermod -aG docker $USER # Partition that disk and subtract 1GB and press ApplyĪlternative run, thanks docker run -privileged -net host -cap-add=ALL -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev:/dev -v /lib/modules:/lib/modules sickcodes/docker-osxĬheck if your hardware virt is on egrep -c '(svm|vmx)' /proc/cpuinfo

# write down the good one and then use that for later # look at your recent containersĭocker ps -all -filter "ancestor=docker-osx"ĭocker ps -all -filter "ancestor=sickcodes/docker-osx"ĭocker start $(docker ps -q -all -filter "ancestor=docker-osx")ĭocker start $(docker ps -q -all -filter "ancestor=sickcodes/docker-osx") If you don't run this you will have a new image every time. This is for when you want to run your system later. Start the same container later (persistent disk)
#Docker for mac size install
Sudo apt install qemu qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virt-manager Sudo pacman -S qemu libvirt dnsmasq virt-manager bridge-utils flex bison ebtables edk2-ovmf Then have QEMU on the host if you haven't already: # ARCH Need to turn on hardware virtualization in your BIOS, very easy to do.

# scroll down to troubleshooting if you have problems Pull requests, suggestions very welcome! docker pull sickcodes/docker-osxĭocker run -privileged -v /tmp/.X11-unix:/tmp/.X11-unix sickcodes/docker-osx Run Mac in a Docker container! Run near-native OSX-KVM in Docker! X11 Forwarding!Ĭredits: OSX-KVM project among many others:
