Docker on macOS
Run Docker containers on an Apple silicon Mac in a VM whose TPM is rooted in the Mac's Secure Enclave, with a notary inside the VM so every manifest chains back to the hardware.
Docker Desktop runs containers in a Linux VM on Apple’s Virtualization.framework. That VM has no
TPM device, and neither does OrbStack’s or Podman’s. EQTY Docker on macOS adds a Docker engine
that does: a Linux VM with a vTPM attached whose seed and attestation
key live in the Mac’s Secure Enclave, and a Desktop Notary running
inside the VM on that TPM. Your images, Compose files and docker commands stay the same.
A program in one of these containers that signs through the EQTY SDK produces a manifest whose chain runs from its statements, to the guest notary, to the vTPM’s IAK, to a key only this Mac’s Secure Enclave can use.
How it works
- The Mac notary creates a vTPM, served by swtpm-notary, with its seed derived in the Secure Enclave at every start and its IAK a Secure Enclave key.
- A Linux VM boots with that vTPM attached. Its kernel measures itself into the vTPM from the first instruction.
- The notary inside the VM uses the vTPM as its hardware root. Containers reach it at the
well-known address
100.100.100.200:8066and sign through it. docker eqtystarts the VM on demand, points Docker at it, and leaves your default context alone.
Three ways to run the VM
| Flavour | Hypervisor | What it adds | Status |
|---|---|---|---|
| Virtualization.framework | vfkit on Apple’s Virtualization.framework | A kernel we build with a vsock TPM driver. The Mac measures the kernel and command line it launches into PCR 8 and 9, so the launch is host-attested. Docker Desktop-like defaults, shared directories, published ports, Rosetta, inotify. | Default; installed by the packages |
| Colima | QEMU through Colima | A second Docker engine next to Docker Desktop, with the vTPM attached through a QEMU wrapper. Scripted end to end, including the guest notary and a chain check. | Available from a checkout |
| Plain QEMU | QEMU | The same by hand, for any VM you build yourself. | Reference |
The pieces
| Piece | What it is | More |
|---|---|---|
| The packages | Three .pkg installers: the Mac notary, swtpm-notary, and eqty-docker with the plugin, the VZ guest kernel and a guest disk with the Linux notary inside. | Quick Start |
docker eqty | The Docker CLI plugin: start, stop, status, settings with Docker Desktop’s key names, and pass-through of every other command. | docker eqty |
| The guest notary | The Linux notary .deb running in the VM on the vTPM. | Run a Guest Notary |
| The comparison | How the Virtualization.framework flavour matches Docker Desktop, check by check. | Docker Desktop vs. EQTY VZ Docker |
The tutorials, scripts and packages live in the swtpm-notary repository and are released with it.
Get started
- On a new Mac, follow the Quick Start: three packages, then
docker eqty run --rm hello-world. - Size the VM and share directories with docker eqty settings.
- Read what the setup proves, and what it does not.