The Docker-OSX project provides four Docker images:
Using this, you'll be able to install macOS in a QEMU virtual machine (via Docker), and run the macOS Catalina or Big Sur desktop, or boot to the OSX shell.
Docker-OSX is a project that makes macOS run near native using OSX-KVM inside a Docker container.