Boots in ~1.0s
A custom-built 6.18 LTS kernel with only what Docker needs, and a busybox userspace.
Status: early development · Apple Silicon only · tested on macOS 27
$ curl -fsSL https://dockma.dev/install.sh | shInstalls the latest release to ~/.local/bin, checksum-verified. Read the script before you run it.
dockma is a Docker runtime for Apple Silicon Macs, an alternative to running the engine through Docker Desktop, Colima or OrbStack. It boots a minimal Linux VM with Apple's Virtualization.framework and runs Docker Engine inside it. You keep using the docker CLI on your host: it talks to the engine through a Unix socket, and a launchd job keeps the VM running in the background.
It is in early development. Feel free to install it, daily-drive it and report issues, and read the known limitations first. If you need a battle-tested, production-ready alternative, consider Colima.
A custom-built 6.18 LTS kernel with only what Docker needs, and a busybox userspace.
Your home directory is shared via virtiofs at the identical path, so -v "$PWD:/src" just works.
-p 8080:80 is reachable at localhost:8080, IPv4 and IPv6. UDP (-p 1053:53/udp) and ports below 1024 work too. Gone when the container stops.
host.docker.internal and --add-host name:host-gateway resolve to your Mac, as on Docker Desktop.
--platform linux/amd64 runs x86-64 images through Rosetta for Linux.
A root shell in the VM through the guest agent, so it works even when dockerd doesn't.
~/.dockma/daemon.json is merged over dockerd's config. Add registry mirrors, proxies and your own CA certificates.
The kernel has /dev/net/tun for Tailscale, and what kind, k3s and Docker-in-Docker need, network policies included.
A sparse data disk that grows with dockma config --disk and is trimmed hourly, so data.img shrinks on the Mac.
Runs under launchd and restarts after a guest crash; a kernel panic reboots the guest in 5 s. dockma stop powers off cleanly.
One install script, checked against the release's SHA256SUMS. dockma install fetches the matching guest image.
MIT licensed. The whole guest builds from one Dockerfile with make guest, so you can read and rebuild all of it.
The guest is not a general-purpose distribution. Everything in it exists to run Docker, and all of it is built from one Dockerfile.
tinyconfig with only what Docker needs. Everything is built in, with no modules.dockma-agent, a Go service on vsock, and dockerd./var/lib/docker lives on the data disk.# 1. Install the dockma CLI and its Linux guest from the latest release curl -fsSL https://dockma.dev/install.sh | sh # 2. Start the VM and point the docker CLI at it dockma start docker context use dockma docker run --rm hello-world
Needs an Apple Silicon Mac with macOS 14 or later and the docker CLI (brew install docker). The script checks the download against the release's SHA256SUMS (and its build attestation, if gh is logged in), installs dockma to ~/.local/bin and fetches the matching Linux guest. Set DOCKMA_VERSION to pin a release or DOCKMA_INSTALL_DIR to install elsewhere. Optional: Rosetta for amd64 images. If DOCKER_HOST is set (Lima does this), it overrides the context.
# 1. Build the guest kernel and initramfs (needs an existing arm64 Docker engine). make guest make install-guest # copies vm/out/* to ~/.dockma/guest/ # 2. Build, sign and install the CLI to ~/.local/bin/dockma make install # 3. Start the VM dockma start # 4. Point the docker CLI at dockma docker context use dockma # created by `dockma start` # or: export DOCKER_HOST=unix://$HOME/.dockma/docker.sock docker run --rm hello-world
Also needs Xcode with Swift 6.4, and any arm64 Docker engine with buildx for the first guest build.
$ dockma status
state: running
docker: ready (/Users/you/.dockma/docker.sock)
uptime: 12m 4s
vm: 6 CPUs, 4096 MiB, kernel 6.18.57
agent: connected 0.7.2
ports: 8080, 1053/udp
daemon: pid 55658 0.7.0virtiofs: $HOME, Rosetta · virtio-blk: /var/lib/docker
A lightweight daemon owns the VM and pipes the Docker, shell and port connections to a Go agent in the guest over vsock.