r/BestGitHubRepos • u/company_url_finder • 4m ago
π³ DevOps macOS in Docker: macOS inside a Docker container (22k stars)
What it does
All text below is quoted directly from the project README.
MacOS inside a Docker container.
Features:
- Runs macOS inside a Docker container
- Automatic download and hands-free installation
- Near-native performance with KVM acceleration
- Customizable CPU, memory, and storage allocation
- Hardware-accelerated graphics via Reims vGPU
- Dynamic memory allocation with memory ballooning
- USB passthrough and host folder sharing
- Supports NAT, user-mode, macvlan, and macvtap networking
Start the container and connect to port 8006 using your web browser.
How it works
The container runs a virtual machine with KVM acceleration and downloads the macOS recovery image for the version you pick (the VERSION variable, with 15 Sequoia as the default). You start it with docker compose or docker run, passing /dev/kvm and /dev/net/tun, then open port 8006 in a browser to see the screen. In the recovery menu you erase the virtual disk with Disk Utility and choose Reinstall macOS. Disk, RAM and CPU size are set with DISK_SIZE, RAM_SIZE and CPU_CORES, and the disk lives in the /storage volume. It needs a Linux host with KVM and an AVX2 CPU.
Repository
https://github.com/dockur/macos
More about this repo on our website: https://bestgithubrepositories.com/dockur/macos
Repository stats
| Metric | Value |
|---|---|
| Stars | 21,801 |
| Forks | 1.2k |
| Last release | v3.12 (2026-08-21) |
| Languages | Shell 80.8%, Python 15.9%, Dockerfile 3.3% |
| Contributors | 15 |
| AI contributor accounts (Claude / Codex / Cursor / Copilot) | none |
| AI co-authored commits | none |
Main contributor
| Field | Value |
|---|---|
| Name | Kroese |
| GitHub | @kroese |
| Commits to this repo | 562 (top contributor) |
| Followers | 0 |
| Public repos | 0 |
| On GitHub since | 2013 |
ββββββββββββββββββββββββββββββ
π Please support our community by subscribing to our newsletter.
Every Monday and Thursday we send the 10 best repos shared here, plus what developers said about each one in the comments. It's free, it takes two minutes to read, and every new subscriber helps r/BestGitHubRepos grow.