dockur/macos packages a macOS virtual machine inside a Docker container using QEMU/KVM, making it easy to spin up a macOS environment on a Linux host. It provides sensible defaults for firmware, disk, and devices, plus a browser-accessible VNC console so you can complete installation and interact with the desktop remotely. Typical inputs—like environment variables and mounted volumes—control edition choice, storage persistence, and resource sizing, which makes runs repeatable and disposable. Because it’s containerized, you can script lifecycle operations, snapshot state via volumes, and integrate the VM into CI or demo setups without a traditional hypervisor UI. Performance depends on host capabilities and whether hardware acceleration is available, but for light GUI tasks, tooling, or sandboxing, it’s surprisingly practical. Users should bring their own valid media and licenses, and be mindful of platform terms and host resource limits.
Features
- KVM acceleration for performance close to native macOS virtualization
- Web-based viewer (access via browser to interact with the macOS GUI)
- Automatic download of macOS installation files / installer ISO etc.
- Ability to specify macOS version via environment variable (e.g. 11, 12, 13, 14, 15)
- Configuration of container resources like CPU cores, RAM, disk size via environment or compose settings
- Ability to expose ports/devices for remote access (web viewer, VNC, networking, etc.)