Files
container-notes/README.md
Timmy 133ed56d4b Add README
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-20 23:20:35 +08:00

809 B
Raw Permalink Blame History

container-notes

在 macOS 上使用 apple/container 的安裝與操作筆記。

container 是 Apple 推出、以輕量虛擬機在 macOS 上執行 Linux 容器的工具。

內容

快速開始

# 安裝Homebrew
brew install container

# 啟動服務
container system start

# 首次需設定預設 kernel
container system kernel set --recommended

# 測試
container run --rm docker.io/library/alpine echo "hello from container"

詳細說明見 container-setup.md

環境備註

  • 需 Apple Siliconarm64
  • 官方僅支援 macOS 26+macOS 15 可透過 Homebrew 安裝執行,但網路功能受限