Get the latest tech news
macOS in QEMU in Docker
Run macOS VM in a Docker! Run near native OSX-KVM in Docker! X11 Forwarding! CI/CD for OS X Security Research! Docker mac Containers. - sickcodes/Docker-OSX
X11 forwarding is enabled runs on top of QEMU + KVM supports Big Sur, custom images, Xvfb headless mode you can clone your container with docker commit You can also pull the.img file out of the container, which is stored in/var/lib/docker, and supply it as a runtime argument to the:naked Docker image. Supply your own local image with the command argument-v "${PWD}/mac_hdd_ng.img:/image" and use sickcodes/docker-osx:naked when instructing Docker to create your container.
Or read this on Hacker News