|
Warning
|
This software is very alpha. Use at your own risk. |
Prerequisites:
-
Catalina or newer
-
Disable System Integrity Protection. SIP doesn’t allow to
chroot.
# Install packages brew install --cask macfuse brew install docker docker-buildx darwin-containers/formula/dockerd # Start services sudo brew services start containerd sudo brew services start dockerd
Then, add "cliPluginsExtraDirs" to ~/.docker/config.json, so Docker is able to find buildx plugin:
{
"cliPluginsExtraDirs": [
"/opt/homebrew/lib/docker/cli-plugins"
]
}Authenticate to GitHub Container Registry using instructions.
echo <YOUR_ACCESS_TOKEN> | docker login ghcr.io -u <GITHUB_USERNAME> --password-stdin
Then, run your first Darwin container:
sudo docker run --rm -it ghcr.io/darwin-containers/darwin-jail/ventura:latest echo "Hello from Darwin! ^_^"
See rund repository for under-the-hood machinery.