Run macOS in a Docker container with KVM acceleration
open sourceMITself-hostablefree
dockur/macos runs macOS inside a Docker container: it downloads and installs macOS automatically, runs it at near-native speed with KVM acceleration, lets you choose CPU, memory and storage, offers hardware-accelerated graphics through Reims vGPU, memory ballooning, USB passthrough, host folder sharing and several networking modes, and shows the desktop in a browser.
Problems it solves
- run macOS in a container on a Linux server
- test my app on macOS without a Mac at hand
- a macOS virtual machine with Docker Compose
Features
- macOS in a Docker container
- automatic download and installation
- KVM acceleration
- Reims vGPU graphics
- USB passthrough and folder sharing
Limitations
- Apple's macOS licence allows macOS only on Apple-branded computers, including in virtual machines, so running it this way on other hardware breaks Apple's terms.1
Alternatives
The same job
These do what macOS in Docker (dockur/macos) does.
