Docker Compose Not Found on macOS: Homebrew or Docker Desktop Fix
This error matches known, documented patterns with reliable solutions.
Quick Fix (Most Common Solution)
- Check if Docker Desktop is running — look for the whale icon in the macOS menu bar
- If running and compose still fails, add Docker Desktop's CLI bin directory to PATH
Seeing "'compose' is not a docker command"? This error can be frustrating, but it's usually fixable. It typically affects your development workflow or system. Below you'll find clear, step-by-step solutions to resolve this issue.
What This Error Means
On macOS, Docker Compose V2 is bundled with Docker Desktop. If the command is missing, Docker Desktop is not running, or its CLI tools directory is missing from your shell PATH.
Frequently documented in developer and vendor support forums.
Not affiliated with browser, OS, or device manufacturers.
New here? Learn why exact error messages matter →
Common Causes
- Docker Desktop is not running — the whale icon in the menu bar must be active for CLI tools to be available
- Homebrew installed 'docker' without the compose plugin
- PATH does not include Docker Desktop's CLI tools directory
How to Fix
- Check if Docker Desktop is running — look for the whale icon in the macOS menu bar
- If running and compose still fails, add Docker Desktop's CLI bin directory to PATH
- Make the PATH change permanent by adding the export line to ~/.zshrc or ~/.bash_profile
- If using Homebrew without Docker Desktop, install docker-compose via Homebrew
Last reviewed: June 2026 How we review solutions
Didn't fix it? Get a personalised solution
Environment-Specific Commands
macOS — Add Docker Desktop CLI to PATH
export PATH="$PATH:/Applications/Docker.app/Contents/Resources/bin"docker compose versionecho 'export PATH="$PATH:/Applications/Docker.app/Contents/Resources/bin"' >> ~/.zshrcsource ~/.zshrc
macOS — Homebrew install (no Docker Desktop)
brew install docker-composedocker-compose version
Quick Diagnostic Path
- If Whale icon not in menu bar → Open Docker Desktop from /Applications/Docker.app and wait for it to start fully
- If Docker Desktop running but 'docker compose' not found → Add to PATH: export PATH="$PATH:/Applications/Docker.app/Contents/Resources/bin"
- If Using Homebrew docker install without Docker Desktop → Run: brew install docker-compose
If This Still Fails, Check
- Apple Silicon (M1/M2/M3): ensure Docker Desktop is the Apple Silicon native version, not the Intel (x86) build
- After macOS upgrades, the Docker Desktop application may move — re-run the PATH export if the command disappears
- If using colima instead of Docker Desktop: brew install docker-compose and start colima with colima start
Verify Compose on macOS
# Start Docker Desktop if not running
open -a Docker
# Wait for it to start, then verify
docker compose version
# Expected: Docker Compose version v2.x.xOS-Specific Behavior
Compose Not Found Mac on Apple Silicon: arm64 vs amd64 Architecture
Compose Not Found Mac for developers on Apple Silicon.
Docker Desktop on Mac uses Rosetta 2 to emulate amd64 images, which works for most images but not all — particularly those with compiled binaries or kernel-specific operations. The cleanest long-term solution is to use multi-architecture images: docker buildx build --platform linux/amd64,linux/arm64 -t myapp:latest --push . creates a manifest list that serves the correct architecture automatically. For pulling official images, most major images (postgres, redis, nginx, node) now publish multi-arch manifests — specifying just the tag without a platform suffix will pull the correct one. If you must use an amd64-only image on Apple Silicon, add platform: linux/amd64 in your Compose file to force emulation. Check which images in your stack lack arm64 variants with docker buildx imagetools inspect <image>.Optional follow-up
Some users ask whether saving fixes for recurring errors would be useful when the same issue appears again.
Was this explanation helpful?
Frequently Asked Questions
Does Docker Desktop include Compose?
Yes, Docker Desktop for Mac includes Compose V2 as a plugin. No separate install is needed if Docker Desktop is installed and running.
How do I know if Docker Desktop is running?
Look for the Docker whale icon in the macOS menu bar. If it is not there, open Docker Desktop from the Applications folder.
I use Homebrew, not Docker Desktop — what do I do?
Run 'brew install docker-compose'. Note that the Homebrew docker package lacks a daemon; Docker Desktop or colima is needed for the full container runtime.
Related Resources
Also Known As
- Docker container error
- Docker build failure
- Container runtime error
- Docker daemon error
Common Search Variations
- "docker container won't start"
- "docker build error fix"
- "docker image not found"
- "container exited with error"
- "docker daemon not responding"
- "fix docker network error"
Related Errors
Still Stuck?
Paste a different error message or upload a screenshot to get help instantly.