Skip to content
86% off$349 $48.86code BF2026

Guides

Run macOS in Docker on Apple Silicon? Use a VM Instead

Docker on a Mac runs Linux, so it can't host macOS. See why Docker-OSX and dockur/macos fall short, and how to run a real macOS VM on Apple silicon.

GuideUpdated 8 min read

On this page

You searched for something like "run macOS in Docker on Apple silicon" or "best way to run macOS in a VM, with Docker support". Both questions usually come down to the same misunderstanding about what a container is, so this page sorts that out first.

Why Docker can't run macOS

A container is a group of isolated processes that use the kernel of the system they run on. Microsoft's .NET documentation puts it this way: developers on macOS use a Linux-based Docker host, can create images only for Linux containers, and containers don't run directly on macOS. Docker Desktop on a Mac therefore starts a hidden Linux VM and runs your containers inside it. Apple's own container tooling does the same thing: to run a Linux container on macOS, you need to virtualize the Linux environment.

A container image can't carry a macOS kernel, because the container uses whatever kernel is underneath it, and that kernel is Linux. A macOS guest needs its own kernel, so it needs a virtual machine.

What Docker-OSX and dockur/macos do

Projects like Docker-OSX and dockur/macos package a QEMU virtual machine inside a container. The container is only a wrapper, and the macOS guest runs in the emulator or VM inside it. Search results suggest they were built with x86 hosts in mind. We haven't tested either, so we won't say how they behave on a given Apple silicon Mac. Read each project's own page for the hardware it targets.

On Apple silicon you don't need that layering. Apple's framework runs a macOS guest directly on the chip.

How a real macOS VM works on Apple silicon

Apple's Virtualization framework is built into macOS. Apple describes it as high-level APIs for creating and managing virtual machines on Apple silicon and Intel-based Mac computers, and it can boot macOS or Linux guests. A macOS guest installs from a restore image (an .ipsw file). In Apple's WWDC22 session, VZMacOSRestoreImage.latestSupported returns the latest stable macOS restore image, with a URL you can download from.

The limits that come from Apple's side:

  • macOS guests need Apple silicon. Apple says macOS VMs run on Apple silicon, while Linux guests run on both Apple silicon and Intel.
  • Two macOS VMs at a time. Apple allows two running macOS VMs on one Mac. Linux VMs don't count. See why you can only run two macOS VMs at once.
  • Same CPU architecture. The VM runs on the real chip, not an emulator, so Intel instructions can't run in these VMs. You get an arm64 macOS guest and nothing else.

For background, see Apple's Virtualization framework, explained. Apple's Virtualization documentation is the primary reference if you want to build your own tool.

Create a macOS VM in Hermitbox

Hermitbox is our app for virtual machines. It uses the Virtualization framework to create and run macOS and Linux VMs. It needs macOS 14 Sonoma or later on your Mac. It's part of the MacSuite bundle ($349 one-time as of November 2026, see pricing), and each app runs for 7 days without a key.

  1. Open Hermitbox and choose File ▸ New VM… (⌘N, Command-N).
  2. On What would you like to run?, pick macOS and click Continue. If the card says "Needs a Mac with Apple silicon", your Mac can't host macOS guests.
  3. On How would you like to install macOS?, choose one:
    • Latest macOS (marked Recommended) asks Apple for the newest version your Mac supports.
    • Choose a Version… lists older releases from Apple, the newest build per major version, back to macOS 13.
    • Use an IPSW File… takes an .ipsw you already have. You can also drop the file on the sheet.
  4. On Name and Size, set a Name and the Cores, Memory and Disk sliders. The recommended starting point for macOS is 4 cores, 8 GB of memory and an 80 GB disk, scaled down to fit your Mac. The minimums are 4 GB of memory and a 64 GB disk. Disk space is used only as the VM fills it. Click Create.
  5. Wait while Hermitbox downloads and installs. The status reads "Downloading…", "Checking download…", then "Installing…". Downloads resume after a quit or crash.
  6. The VM boots to macOS Setup Assistant. Click inside the VM window to give it your keyboard. To get the keyboard back, press and release ⌃⌥ (Control-Option).

Downloaded images are kept for reuse and listed under Downloads in the sidebar. The full walkthrough is in Create a macOS virtual machine, and a tool-neutral version is in how to create a macOS virtual machine on your Mac.

What you get once it's running

  • Clipboard sharing. Double-click the Hermitbox Guest disk on the VM's desktop to install a small helper. It shares the clipboard with your Mac and follows your Mac's appearance.
  • Shared folders. Add folders from the inspector. In the guest they appear in My Shared Files.
  • Snapshots. Press ⇧⌘S before trying something risky. On an APFS disk a snapshot is instant and takes no space until the VM changes. See Snapshots, clones, templates and throwaway runs.
  • Run Without Saving Changes. ⌥⌘R starts a throwaway copy and discards every change when it stops. This is the closest thing to a disposable container for macOS.
  • Command line. The hermitbox tool can start, stop, suspend and snapshot VMs, print a VM's IP address, and open an SSH session. It can't create VMs, so use the app for that.

The "with Docker support" half

Hermitbox has no Docker or container features, so it doesn't cover this half. What to do depends on what you need:

You wantDo this
Containers on your MacInstall Docker Desktop as usual. It already brings its own Linux VM.
A Linux box to run Docker in, kept apart from your MacCreate a Linux VM in Hermitbox (the Ready in a Minute Ubuntu Server image starts with SSH ready), then install Docker in it using Docker's own instructions. Your Mac reaches the VM by its IP address. Hermitbox's Linux VMs are arm64.
Docker inside a macOS VMNot something Hermitbox offers, and likely to fail (see the warning below).
A macOS machine to test software onUse a macOS VM as above. No Docker needed.
Linux containers with VM isolation, from AppleApple's open-source Containerization framework and container tool. Apple says it runs each container inside its own lightweight virtual machine. These are still Linux containers.

Free alternatives for a macOS VM

We make Hermitbox, so weigh our view accordingly. If you only need a macOS VM, free tools do that job (details as of November 2026):

  • VirtualBuddy is free and open source. It lists Apple restore images, takes a custom IPSW URL or file, and has a guest app for clipboard and shared folders. Hermitbox takes an IPSW file but not an IPSW URL.
  • UTM is free from GitHub and covers Windows, Linux and macOS through QEMU and Apple Virtualization. It also handles guests Hermitbox doesn't, such as Windows and other CPU architectures.

Hermitbox does not run Windows or Intel (x86-64) guests. For a wider comparison, see Best virtual machine software for Mac.

Checklist before you try again

  • Your Mac has Apple silicon (Apple menu ▸ About This Mac shows the chip).
  • Your Mac runs macOS 14 Sonoma or later (Hermitbox's requirement).
  • Fewer than two macOS VMs are running.
  • The disk holding your VMs has room for at least the 64 GB minimum, plus the downloaded image.
  • You have a working internet connection for the image download, or an .ipsw file ready.

If it doesn't work

Most failures show a plain-language alert. The common ones:

  • "Needs Apple Silicon." macOS VMs can't run on an Intel Mac.
  • "Two macOS VMs Are Already Running." Apple's limit. Shut one down and try again. The alert only has an OK button; it doesn't stop the other VM for you.
  • "This macOS Can't Run Here Yet." The image needs a newer macOS on your Mac, or Apple's device support files. Pick an older version under Choose a Version…, or update your Mac.
  • "Can't Reach Apple." The list of macOS versions couldn't be loaded. Check your connection, or choose your own file with Use an IPSW File….
  • "Download Interrupted." The download picks up where it stopped once your connection is back.
  • "Installation Failed." Click Try Again. The downloaded image is kept.
  • "Disk Full." Free some space, move a VM with Machine ▸ Move To…, or change the Library folder in Settings ▸ General for new VMs. Existing VMs stay where they are.

More messages and fixes are in Hermitbox troubleshooting. If none of that helps, contact support through macsuite.app/support with the exact alert text, your Mac model and macOS version, the macOS version you tried to install, and the steps you already tried.

text
Subject: Hermitbox: macOS VM won't install

Mac model and chip: (for example, MacBook Pro, Apple silicon)
Mac macOS version:
Hermitbox version:
macOS version I'm trying to install (Latest / Choose a Version / IPSW):
Exact alert title and message:
What I already tried (Try Again, different version, freed disk space):

Common questions

Can I run macOS in Docker on an Intel Mac?

No. Docker Desktop on an Intel Mac still runs containers in a Linux VM, so the answer is the same. Hermitbox's macOS guests need Apple silicon, so it won't help on Intel either.

Is a macOS VM the same as a container?

No. A VM has its own kernel and its own operating system. A container shares the kernel of the system it runs on, which on a Mac is Linux.

Does Docker-OSX or dockur/macos work on Apple silicon?

We haven't tested them, so we can't say. They run a QEMU VM inside a container and, per search results, were designed with x86 hosts in mind. A native VM through the Virtualization framework avoids that extra layer.

How many macOS VMs can I run at once?

Two, which is Apple's limit. Linux VMs don't count toward it.

Every app.
One purchase.