---
title: "Docker on macOS"
description: "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."
source: "EQTY Notary"
---
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](../notary-backed-vtpm/index.mdx) attached whose seed and attestation
key live in the Mac's Secure Enclave, and a [Desktop Notary](../desktop-notary/index.mdx) 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](../notary-backed-vtpm/index.mdx), 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

| Flavour                                                    | Hypervisor                              | What it adds                                                                                                       | Status                       |
| ---------------------------------------------------------- | --------------------------------------- | ------------------------------------------------------------------------------------------------------------------ | ---------------------------- |
| [Virtualization.framework](./virtualization-framework.mdx) | 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](./wip/colima.mdx)                                     | 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](./wip/qemu.mdx)                                   | 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](./quick-start.mdx) |
| **`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](./docker-eqty.mdx) |
| **The guest notary**    | The Linux notary `.deb` running in the VM on the vTPM.                                             | [Run a Guest Notary](../notary-backed-vtpm/guest-notary.mdx) |
| **The comparison**      | How the Virtualization.framework flavour matches Docker Desktop, check by check.                   | [Docker Desktop vs. EQTY VZ Docker](./comparison.mdx) |

The tutorials, scripts and packages live in the
[swtpm-notary repository](https://github.com/eqtylab-RND/swtpm-notary) and are released with it.

## Get started

1. On a new Mac, follow the [Quick Start](./quick-start.mdx): three packages, then
   `docker eqty run --rm hello-world`.
2. Size the VM and share directories with [docker eqty settings](./docker-eqty.mdx#settings).
3. Read [what the setup proves](./virtualization-framework.mdx#what-it-proves), and what it does
   not.