Docker Desktop on a Mac does not run Linux containers directly on the macOS kernel. It starts a Linux virtual machine, and the Engine inside that VM manages images, containers, and volumes. So having a docker command does not mean the Engine is ready. Directory mounts, CPU architecture, and disk usage on a Mac also differ from Linux-host troubleshooting.
This guide routes issues by symptom: check the Mac chip, OS, and Docker context first, then isolate startup, file sharing, image architecture, or disk problems. Most commands are read-only; cleanup and resets come only after you confirm your data. Docker Desktop’s UI and virtual machine managers change over time, so compare the current Mac installation requirements, troubleshooting guide, Mac FAQ, and settings reference before changing options.
In Google Trends China data for the past 30 days, Docker had an average relative index of 5 in a Google Web Search comparison. Rising related queries included “docker macos” and “windows install docker.” In the latest complete week (Nov 23–29), daily averages were about 5 for Docker, 67 for DeepSeek, and 8 for Claude Code; their 30-day averages in this comparison were 5, 77, and 10. Trends values are normalized within the selected region, period, and comparison terms; they are not search volume or a prediction of site traffic. This site already has a Windows Docker Desktop and WSL2 guide; this article focuses on macOS virtualization and file sharing. View the Trends comparison.
First identify whether the CLI, client, or Engine is failing
Open Docker Desktop and wait for its menu bar icon to show that it is running. Then collect basic information in Terminal:
|
|
uname -m usually prints arm64 on Apple silicon and x86_64 on an Intel Mac. Docker Desktop requires a supported macOS version and at least 4 GB of memory. Docker supports the current macOS major release and the previous two major releases. Check the official installation page for the current support range.
docker version shows Client and Server separately. If the Client appears but the Server reports a connection error, the CLI exists but cannot reach Docker Engine. If docker info returns Server details, the CLI is connected; continue with the specific container or image error.
Record the output before changing anything. Do not start with docker system prune, a VM reset, or reinstalling the app. Those actions can delete container data without fixing a context, environment variable, or file-sharing problem.
Docker Desktop will not open or stays on “starting”
Check the Mac model, OS version, and virtualization support
Check the chip and macOS version in About This Mac, then compare them with the current Docker Desktop requirements. After a macOS upgrade, confirm that your Docker Desktop version supports the new OS. If the OS is too old, choose a compatible Desktop release or upgrade macOS; repeatedly resetting the Linux VM is unlikely to help.
Check whether the Apple Hypervisor Framework is available:
|
|
If the result is kern.hv_support: 1, macOS reports Hypervisor Framework support. If the key is missing or the value is not 1, check the Mac hardware, OS version, and virtualization configuration, then inspect Docker Desktop diagnostics. Current Docker Desktop uses the Apple Virtualization framework by default. Older HyperKit instructions are mainly historical context; on Intel Macs, prefer the manager Docker currently recommends.
Distinguish Rosetta from a hard requirement on Apple silicon
Rosetta 2 is no longer required just to run Docker Desktop on Apple silicon. Some optional Darwin/AMD64 tools may still need it, and Docker Desktop’s Rosetta option depends on the selected virtual machine manager.
If your workload specifically needs Rosetta, check or install it as described on Docker’s official installation page:
|
|
Do not treat this command as a universal fix for startup failures. The current Docker documentation lists Rosetta as unsupported with Docker VMM. In that case, check the VMM compatibility notes or select a manager that supports the feature instead of repeatedly reinstalling Rosetta.
Collect logs before considering a restart or diagnosis
Open Troubleshoot from the Docker Desktop menu and try a normal Restart first. If startup still fails, create a diagnostic ID from the Troubleshoot panel. You can also run:
|
|
Uploading diagnostics sends logs to Docker. Confirm that sharing logs meets your privacy or organization requirements; if you do not want to upload them, begin with local logs and status information available in the app.
The CLI exists but cannot connect to Docker Engine
Confirm that the Linux VM has started in Docker Desktop, then inspect the active context:
|
|
If the context points to a remote host or a custom socket, the CLI may not be connecting to the local Desktop at all. Check whether DOCKER_HOST, DOCKER_CONTEXT, or other variables are set by shell startup files, development tools, or project scripts.
You can temporarily clear overrides in the current terminal and test again:
|
|
This does not remove variables from your shell configuration files. If the command restores the connection, find where the variables are set and fix that source; do not mistake unset for a permanent fix. Also avoid blindly switching to a context name: first use docker context ls to see the actual local Desktop context.
If Client and Server both appear normally, try a small, stateless validation:
|
|
If pulling the image times out while the Engine is healthy, investigate proxy, DNS, firewall, or registry connectivity. Separate network errors from Engine startup errors so you do not reset local container data unnecessarily.
A bind mount fails or the container cannot see Mac files
On macOS, containers run inside a Linux VM. Docker Desktop must share a host path with the VM before a container can access it. The default shared directories include /Users, /Volumes, /private, /tmp, and /var/folders. A project outside these locations can trigger Mounts denied or cannot start service.
In Docker Desktop, open Settings > Resources > File sharing and check the project directory. Add only the paths the container needs; do not share an entire disk or home folder for convenience. Sharing many files creates synchronization overhead and may lead to high CPU usage and slow file operations.
From the project directory, test a short-lived read-only mount:
|
|
If the container reports a mount permission error, verify that $PWD is a real absolute path and add that project directory to File sharing, then apply the setting. If the command works, the mount itself is available; continue by checking relative paths in Compose, the destination inside the container, and service-user permissions.
When mounts are slow, reproduce the problem with a small directory before expanding the scope. Large node_modules, build outputs, Git object directories, or an entire home folder create many file-change notifications. Moving build caches into a container volume or reducing the shared path is often more direct than blindly increasing CPU.
Watch for case differences too. Common macOS filesystems are case-insensitive by default, while Linux filesystems are case-sensitive. Code that requests Config.json may happen to find a disk file named config.json on a Mac, while a Linux process in the container reports that the file is missing. Fix the real filename or import path instead of assuming Docker sharing is the only cause.
For databases, search indexes, package caches, and other high-write data, do not default to storing them on a Mac bind mount. Prefer a Docker named volume so this data stays in the Linux VM filesystem. Bind-mount source code when you need to edit it on the host; inspect volumes that must persist across containers:
|
|
Do not replace a real database volume with a temporary directory just to test a mount. An empty bind mount can hide content that was already present in the container image. Back up important data before changing Compose volumes mappings.
An amd64 image fails or runs slowly on Apple silicon
Check the Mac chip and the image architecture:
|
|
Native images on Apple silicon generally use linux/arm64; Intel Macs generally use linux/amd64. If an image is only available for AMD64, Apple silicon may need emulation, which can affect speed and compatibility. Prefer an ARM64 or multi-platform version of the same image when available.
You can make the build target explicit:
|
|
--load imports a single-platform build into the local Docker image store for testing. To publish a multi-platform image, use an appropriate Buildx output and verify dependencies and native binaries on each target platform. A successful build command alone does not prove that the image will work everywhere.
If you develop on Apple silicon but deploy to an AMD64 server, specify the target platform in your build workflow and validate it on the target architecture or in CI. A plain docker build on a Mac uses the local default platform. The result may start locally but fail on the server.
Check whether the image tag provides a multi-platform manifest. A README saying “supports Docker” does not prove that one tag includes both ARM64 and AMD64. If a dependency is AMD64-only, consider an alternative image, a source build, or a remote AMD64 build rather than treating emulation as equivalent to native ARM64 performance.
Docker VMM has current feature limitations, particularly around Rosetta and compatibility with some database filesystems. Before switching managers, read the current VMM known issues and note which data disk contains your images and containers. Different VMMs use separate disk images; switching does not automatically merge the old data into the new one.
After installation or upgrade, the CLI path is wrong
Docker Desktop can place CLI tools in $HOME/.docker/bin and configure PATH. Advanced installation choices or a Homebrew Docker CLI can leave multiple docker commands on the system. Check the actual command and version:
|
|
Compare paths and shell PATH order. Do not delete every Docker file or start by running the client with sudo. For a new install, download the official package that matches the Mac chip, quit apps that may call Docker in the background, and move Docker.app from the mounted Docker.dmg to Applications. If Finder says the app is damaged, download it again from Docker and verify the package; do not disable Gatekeeper or run an unknown fix.
Check registry proxy and certificate errors by traffic direction
Docker Desktop’s application proxy and HTTP requests made inside a container can use different settings. Test image pulls and container requests separately:
|
|
If docker pull fails, check Docker Desktop’s proxy and registry connection. If the pull works but the container request fails, check container DNS, proxy variables, and the destination service. Use a public URL that does not expose credentials.
For certificate errors, check whether the corporate CA is trusted in Mac Keychain and restart Docker Desktop after certificate changes. Do not mark a registry insecure to bypass certificate validation. Follow the official Mac FAQ for private-registry certificates, and never commit private keys.
Docker Desktop is taking all available disk space
Docker Desktop stores Linux containers and images in a large disk image on the Mac. The maximum size shown by Finder or a disk analyzer may differ from the image’s actual usage. In Settings > Resources > Advanced, check the image location, maximum capacity, and current usage.
First inspect Docker object usage:
|
|
Then clean by object type. These commands remove the corresponding unused resources, so verify their targets first:
|
|
docker system prune removes stopped containers, unused networks, dangling images, and build cache. By default, it does not remove volumes. Adding --volumes expands the deletion and may remove databases or development data. Do not use docker system prune -a --volumes as a routine space-recovery command.
To move the disk image, change Disk image location in Docker Desktop Settings > Resources > Advanced and apply it. Do not move the image file directly in Finder; Docker Desktop may lose track of it.
Reducing the maximum disk-image size is not a lossless compression operation. Docker’s documentation says that lowering this limit deletes the current disk image, including containers and images. Back up important volumes or the VM data using the official backup guide first. If macOS does not show free space immediately after cleanup, allow the VM to reclaim space or follow Docker’s documented reclaim process; do not manually delete files inside the VM.
Builds are slow, file I/O is slow, or network access fails
Test the host and container separately. A slow docker pull usually points to registry networking; a slow bind mount with many small files usually points to host-to-VM file sharing; a killed or repeatedly restarting container may point to VM memory, CPU, or disk limits.
Review CPU, memory, swap, and disk limits under Settings > Resources. Check whether macOS has enough capacity before increasing Docker’s allocation; do not give Docker all available memory. To observe container usage, run:
|
|
For file-intensive projects, check which sharing implementations the current VMM supports. Docker documents VirtioFS for the Apple Virtualization framework and lists it as the only option supported by Docker VMM. Available options vary by VMM and version, so do not copy settings from another Mac without checking compatibility.
If a container cannot reach the internet, test the host network, Docker Desktop proxy settings, and container DNS separately. Corporate proxies, VPNs, DNS filters, and security software can change the connection path. Reproduce the issue with a simple image and note whether it happens during docker pull or in a request from inside a container. Do not put proxy credentials in public Compose files or image layers.
Proxy failures also depend on traffic direction. The Docker Desktop application proxy affects sign-in, Desktop, and some image pulls; HTTP requests from inside a container may need their own configuration. Docker’s settings distinguish Docker Desktop proxy from Containers proxy. Before changing either, identify whether the failure occurs during docker pull, a Compose pull, or an external API request from the application in the container.
If you see a certificate-verification error, check whether the corporate CA is trusted in the Mac Keychain and whether Docker Desktop was restarted to load certificate changes. Do not mark a registry insecure to bypass certificate validation; that changes the transport trust boundary. Configure private-registry client certificates and CAs according to the official Mac FAQ, and never commit private keys.
When to reset or reinstall
Be careful with -v when cleaning a Compose project. docker compose down keeps named volumes by default; docker compose down --volumes removes declared named volumes and attached anonymous volumes, which can erase database contents. Inspect the project configuration and target volume first. Do not use down -v as a routine fix for Docker Desktop.
Use the volume name to identify data:
|
|
Different Compose projects can create similar but distinct volume names. Compare the docker volume inspect output with the Compose volume declaration to identify which data you are about to keep or remove. Account for the database’s consistency requirements when backing up; copying a directory while the database is writing may not produce a recoverable backup.
If you only need to recreate containers, keep their volumes and rebuild only the services. If you need to delete one application’s data, make an independent backup first, then remove that specific volume. Desktop’s Clean up data or factory reset affects a wider range of data; confirm containers, images, volumes, and Kubernetes state before using it.
The recommended order is: verify OS and chip → confirm Docker Desktop started → inspect context and environment variables → check shared paths or image architecture → gather diagnostics → back up before resetting.
The Troubleshoot menu has separate actions for Clean up data, resetting Kubernetes, and restoring factory defaults. A data cleanup destroys local Docker containers and images; a factory reset returns application settings to their initial state. Before proceeding, check for unbacked images, named volumes, databases, and Kubernetes data.
If Docker Desktop cannot start but its disk image remains, quit the app and back up the VM files using the official backup and restore guide. If you customized Disk image location, back up that actual location instead of copying a default path.
Only consider uninstalling and reinstalling after checking supported OS versions, virtualization, CLI configuration, and data backups. Reinstalling the app may not remove or repair the user’s data image. Confirm the effect of the uninstall procedure before deciding whether to keep the data directory.
Quick lookup for common errors
| Symptom | Check first | Next step |
|---|---|---|
Cannot connect to the Docker daemon |
Desktop status, context, DOCKER_HOST |
Clear current-shell overrides and check Server |
Mounts denied |
Is the absolute project path in File sharing? | Add only the needed directory and Apply |
exec format error |
Do image and binary OS/CPU architectures match? | Find an ARM64 image or verify Buildx platform |
| Build or container suddenly slows down | VMM, shared-path size, CPU/memory limits | Narrow the bind mount, then check docker stats |
| Mac disk space is low | Actual disk-image use, images, cache, volumes | Inspect first, clean by type, back up important volumes |
| Docker Desktop will not start | Supported macOS range, Hypervisor, diagnostics | Collect a diagnostic ID before resetting data |
If the problem occurs only in one project, reproduce it first with a minimal container and empty directory. If the minimal case works, add Compose services, mount paths, architecture requirements, and proxy settings one at a time. This usually reveals which layer introduces the failure.
Keep a reproducible troubleshooting record
If a team needs to investigate, record the Mac chip, macOS version, Docker Desktop version, VMM, active context, exact error text, and minimal reproduction. Do not attach private registry credentials, proxy passwords, tokens from environment variables, or sensitive container logs.
Describe “Desktop will not start,” “CLI cannot reach Server,” “container cannot mount a path,” and “image architecture mismatch” as separate symptoms. Change one variable at a time and record the result before and after each change. That makes it possible to tell whether reinstalling, switching VMM, or cleaning data actually affected the issue.
When sending diagnostics to Docker, record the diagnostic ID and time, and follow your organization’s log-upload policy. Do not repeatedly generate and publish diagnostic bundles containing local environment information without a clear need.