EQTY LabDocs

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.

View as Markdown

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

  1. 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.
  2. A Linux VM boots with that vTPM attached. Its kernel measures itself into the vTPM from the first instruction.
  3. The notary inside the VM uses the vTPM as its hardware root. Containers reach it at the well-known address 100.100.100.200:8066 and sign through it.
  4. docker eqty starts the VM on demand, points Docker at it, and leaves your default context alone.

Three ways to run the VM

FlavourHypervisorWhat it addsStatus
Virtualization.frameworkvfkit on Apple’s Virtualization.frameworkA 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
ColimaQEMU through ColimaA 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 QEMUQEMUThe same by hand, for any VM you build yourself.Reference

The pieces

PieceWhat it isMore
The packagesThree .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 eqtyThe Docker CLI plugin: start, stop, status, settings with Docker Desktop’s key names, and pass-through of every other command.docker eqty
The guest notaryThe Linux notary .deb running in the VM on the vTPM.Run a Guest Notary
The comparisonHow 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

  1. On a new Mac, follow the Quick Start: three packages, then docker eqty run --rm hello-world.
  2. Size the VM and share directories with docker eqty settings.
  3. Read what the setup proves, and what it does not.