登录 注册
网络与基础设施开发者工具 dockerdocker-containermacmacosmacos-virtual-machinemacos-vm
21,741
Stars
1,148
Forks
78
Watchers
9
Open Issues
MIT
许可证
Shell
语言
2024-06-02
创建时间
2026-10-08
最近更新

项目能做什么

支持在 Docker 容器内直接运行 macOS 系统的开源方案。
来源:基于仓库元数据 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<h1 align="center">macOS<br />
<div align="center">
<a href="https://github.com/dockur/macos/"><img src="https://github.com/dockur/macos/raw/master/.github/logo.png" title="Logo" style="max-width:100%;" width="128" /></a>
</div>
<div align="center">

[![Build]][build_url]
[![Version]][tag_url]
[![Size]][tag_url]
[![Package]][pkg_url]
[![Pulls]][hub_url]

</div></h1>

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](https://github.com/steelbrain/reims-vgpu)
- Dynamic memory allocation with memory ballooning
- USB passthrough and host folder sharing
- Supports NAT, user-mode, macvlan, and macvtap networking

## Usage  🐳

##### Docker Compose:

```yaml
services:
  macos:
    image: dockurr/macos
    container_name: macos
    environment:
      VERSION: "15"
    devices:
      - /dev/kvm
      - /dev/net/tun
    cap_add:
      - NET_ADMIN
    ports:
      - 8006:8006
      - 5900:5900/tcp
      - 5900:5900/udp
    volumes:
      - ./macos:/storage
    restart: always
    stop_grace_period: 2m
```

##### Docker CLI:

```bash
docker run -it --rm --name macos -e "VERSION=14" -p 8006:8006 --device=/dev/kvm --device=/dev/net/tun --cap-add NET_ADMIN -v "${PWD:-.}/macos:/storage" --stop-timeout 120 docker.io/dockurr/macos
```

##### Kubernetes:

```shell
kubectl apply -f https://raw.githubusercontent.com/dockur/macos/refs/heads/master/kubernetes.yml
```

##### GitHub Codespaces:

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/dockur/macos)

## Requirements ⚙️

- Docker or Podman on a Linux host with KVM support.
- Docker Desktop or Podman (Desktop) on Windows 11 with nested virtualization enabled.
- An AVX2-capable processor, such as Intel Haswell (4th-generation Core) or AMD Zen (Ryzen 1000 series) or newer.
- At least 4 GB of available RAM.
- At least 32 GB of free disk space.

> [!NOTE]
> Docker Desktop on Linux, macOS, and Windows 10 does not currently provide KVM access to containers and is therefore not supported.

## FAQ 💬

### How do I use it?

  Very simple! These are the steps:
  
  - Start the container and connect to [port 8006](http://127.0.0.1:8006/) using your web browser.

  - After the recovery image is downloaded, a black screen with a progress bar will appear while macOS downloads the remaining installation files.

  - Once the download is complete, the macOS recovery menu will appear.

  - Choose `Disk Utility` and then select the largest `Apple Inc. VirtIO Block Media` disk.

  - Click the `Erase` button to format the disk to APFS, and give it any name you like.

  - Close the current window and proceed the installation by clicking `Reinstall macOS`.
  
  - When prompted where you want to install it, select the disk you created previously.
 
  - After all fi
阅读完整原文

商业机会分析 规则生成(AI 未配置)

综合评分 48.9 分。该项目在“个人可实施性”维度得 0.0 分,“付费可能性”维度得 40.0 分,差异化空间 100.0 分(评分依据见评分卡)。

将 macos 改造为垂直场景 SaaS

产品构想保留核心能力,针对某一类用户(如某行业团队)做托管版,收取月费。
目标用户有该需求的中小团队 / 独立站长
难度/周期较高 · 2~4 周(MVP)
收费模式订阅制(如 ¥29~99/月)
竞争风险需验证付费意愿;注意许可证合规
依据 数据支持的判断:许可证与关键词显示存在商用与付费场景

面向细分需求的二次开发产品

产品构想基于 macos 的核心能力,聚焦一个更窄的场景(如某平台、某行业)做差异化。
目标用户该细分场景用户
难度/周期中 · 2~6 周
收费模式买断制 / 订阅制 / 广告
竞争风险细分需求规模需验证
依据 AI 推测:基于项目主题标签的判断
以上为规则引擎基于仓库公开数据生成的参考结论,包含推测成分,不构成投资或创业承诺;配置 AI 后可获得更深入的分析。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
ohmyzsh/ohmyzsh 中文介绍暂未生成
🙃 A delightful community-driven (with 2,500+ contributors)
190,452 Shell
Stirling-Tools/Stirling-PDF 中文介绍暂未生成
#1 PDF Application on GitHub that lets you edit PDFs on any
96,238 TypeScript
louislam/uptime-kuma 中文介绍暂未生成
A fancy self-hosted monitoring tool
93,480 JavaScript
bregman-arie/devops-exercises 中文介绍暂未生成
Linux, Jenkins, AWS, SRE, Prometheus, Docker, Python, Ansibl
86,716 Python
macrozheng/mall 中文介绍暂未生成
mall项目是一套电商系统,包括前台商城系统及后台管理系统,基于Spring Boot+MyBatis实现,采用Dock
85,031 Java
netdata/netdata 中文介绍暂未生成
The fastest path to AI-powered full stack observability, eve
81,361 Go
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2024-06-02,最近推送 2026-10-08,发布过 69 个 Release
社区活跃Star 21,741 / Fork 1,148 / Issue 9(数据支持,可自行核实)
许可证MIT
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/dockur/macos.git
cd macos
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。