ballsnowbot.blogg.se

Docker for mac battery
Docker for mac battery






Your image will be stored in: /var/lib/docker/overlay2/./arch/OSX-KVM/home/arch/OSX-KVM/mac_hdd_ng.img # find your container's root folderĭocker inspect $(docker ps -q -all -filter "ancestor=docker-osx") | grep UpperDir

#Docker for mac battery install#

If you don't have Docker already # Arch (pacman version isn't right at time of writing)Īpt-get remove docker docker-engine docker.io containerd runc -yĪpt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -yĪdd-apt-repository "deb $(lsb_release -cs) stable"Īpt-get install docker-ce docker-ce-cli containerd.io -y 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) 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

docker for mac battery

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

docker for mac battery

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:






Docker for mac battery