docker-compose docker: 'compose' is not a docker command
- [x] I have tried with the latest version of Docker Desktop
- [ ] I have tried disabling enabled experimental features
- [ ] I have uploaded Diagnostics
- Diagnostics ID:
Expected behavior
Expected to be able to run compose.
Actual behavior
compose seems to load docker and docker cannot find compose.
Information
- macOS Version: 12.3
- Intel chip or Apple chip: Apple
- Docker Desktop Version: 4.14.0,
- compose: 2.12.2
Output of /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check
% /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check
Starting diagnostics
[PASS] DD0027: is there available disk space on the host?
[PASS] DD0028: is there available VM disk space?
[PASS] DD0018: does the host support virtualization?
[PASS] DD0001: is the application running?
[PASS] DD0017: can a VM be started?
[PASS] DD0016: is the LinuxKit VM running?
[PASS] DD0011: are the LinuxKit services running?
[PASS] DD0004: is the Docker engine running?
[PASS] DD0015: are the binary symlinks installed?
[PASS] DD0031: does the Docker API work?
[PASS] DD0013: is the $PATH ok?
[PASS] DD0003: is the Docker CLI working?
[PASS] DD0014: are the backend processes running?
[PASS] DD0007: is the backend responding?
[PASS] DD0008: is the native API responding?
[PASS] DD0009: is the vpnkit API responding?
[PASS] DD0010: is the Docker API proxy responding?
[PASS] DD0012: is the VM networking working?
[SKIP] DD0030: is the image access management authorized?
[PASS] DD0019: is the com.docker.vmnetd process responding?
[PASS] DD0033: does the host have Internet access?
[PASS] DD0018: does the host support virtualization?
[PASS] DD0001: is the application running?
[PASS] DD0017: can a VM be started?
[PASS] DD0016: is the LinuxKit VM running?
[PASS] DD0011: are the LinuxKit services running?
[PASS] DD0004: is the Docker engine running?
[PASS] DD0015: are the binary symlinks installed?
[PASS] DD0031: does the Docker API work?
[PASS] DD0032: do Docker networks overlap with host IPs?
No fatal errors detected.
Steps to reproduce the behavior
- This is a brand new company machine. I first installed the intel installer but then uninstalled and reinstalled with the apple silicon m1 installer.
- run
docker-compose. get
% docker-compose
docker: 'compose' is not a docker command.
See 'docker --help'
the docker command seems to work but it cannot find the docker-compose command
I have these under bin
% ls -l /usr/local/bin
total 0
lrwxr-xr-x 1 root wheel 62 Nov 10 16:48 com.docker.cli -> /Applications/Docker.app/Contents/Resources/bin/com.docker.cli
lrwxr-xr-x 1 root wheel 54 Nov 10 16:48 docker -> /Applications/Docker.app/Contents/Resources/bin/docker
lrwxr-xr-x 1 root wheel 62 Nov 10 16:48 docker-compose -> /Applications/Docker.app/Contents/Resources/bin/docker-compose
lrwxr-xr-x 1 root wheel 80 Nov 10 16:48 docker-compose-v1 -> /Applications/Docker.app/Contents/Resources/bin/docker-compose-v1/docker-compose
lrwxr-xr-x 1 root wheel 73 Nov 10 16:48 docker-credential-desktop -> /Applications/Docker.app/Contents/Resources/bin/docker-credential-desktop
lrwxr-xr-x 1 root wheel 75 Nov 10 16:48 docker-credential-ecr-login -> /Applications/Docker.app/Contents/Resources/bin/docker-credential-ecr-login
lrwxr-xr-x 1 root wheel 77 Nov 10 16:48 docker-credential-osxkeychain -> /Applications/Docker.app/Contents/Resources/bin/docker-credential-osxkeychain
lrwxr-xr-x 1 root wheel 60 Nov 10 16:48 docker-index -> /Applications/Docker.app/Contents/Resources/bin/docker-index
lrwxr-xr-x 1 root wheel 56 Nov 10 16:48 hub-tool -> /Applications/Docker.app/Contents/Resources/bin/hub-tool
lrwxr-xr-x 1 root wheel 55 Nov 10 16:48 kubectl -> /Applications/Docker.app/Contents/Resources/bin/kubectl
lrwxr-xr-x 1 root wheel 55 Nov 10 16:48 kubectl.docker -> /Applications/Docker.app/Contents/Resources/bin/kubectl
lrwxr-xr-x 1 root wheel 65 Nov 10 16:48 vpnkit -> /Applications/Docker.app/Contents/Resources/bin/com.docker.vpnkit
running the compose command directly
% /Applications/Docker.app/Contents/Resources/bin/docker-compose
docker: 'compose' is not a docker command.
See 'docker --help'
Having the same issue here :(
Same issue here. macos 12.6.1 m1. docker 4.14.0
which docker-compose
/usr/local/bin/docker-compose
👍 Same issue here,
Settings:
- macOS Ventura 13.0.1
- MacBook Air Apple M2
I have tried:
- Docker via .dmg downloaded from the website
- Docker dmg installed via homebrew cask
Facing the same issues:

Output of /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check

Definitely something wrong with the latest release. I've downgraded to 4.13.1 and compose is working again.
Definitely something wrong with the latest release. I've downgraded to 4.13.1 and compose is working again.
I can confirm that 4.13.1 is working for me as well. The issue appears on version 4.14.0 only.
docker-compose works for me if I switch off "Use docker compose v2". on 4.14.0
docker-compose works for me if I switch off "Use docker compose v2". on 4.14.0
Can confirm this worked for me (M1 pro macbook on Ventura 13.0.1). Installing 4.13.1 didn't work for some reason (fresh install)
docker-compose works for me if I switch off "Use docker compose v2". on 4.14.0
This does not do the trick for me, and neither does downgrading to 4.13.1.
On macOS Ventura 13.0 (Intel)
Thanks for reporting. Sadly, I wasn't able to reproduce this issue on 4.14.0. Can somebody experiencing this issue upload a diagnostic, as documented here: https://docs.docker.com/desktop/troubleshoot/overview/#diagnose
hello guys, I was also getting the same error here, but I managed to get around it using the docker-compose-v1 command
docker-compose-v1 build
Can you check contents of /usr/local/lib/docker/cli-plugins? (is docker-compose there?)
I don't have this folder here
my output is: ls: /usr/local/lib/docker/cli-plugins: No such file or directory
running the command: which docker-compose
I have this result: /usr/local/bin/docker-compose
running the command: ls /usr/local/bin/docker-compose
I have this result: docker-compose@ docker-compose-v1@
Do you get the same error for docker buildx and docker scan and docker sbom?
yes i get the same error running these commands.
Which version did you update from, or was this from a fresh install?
It's possible this is a consequence of updating from 4.13.1 to 4.14, would be good to narrow that down if anyone is seeing this error from updating from an older version than 4.13.1.
i have it too. It's a fresh install not an update / upgrade if I turn off v2 compose it works
i just installed docker desktop
- Docker Desktop 4.14.0 (91374) is currently the newest version available.
Great, thanks for quick feedback. I'm guessing theres likely an error in the installation log. If you can upload a diagnostic that'd be great. Sorry for the inconvenience.
I'm sorry but I don't have the installation log. what I can say is that I downloaded the latest version available from the website
Output of /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check
[PASS] DD0027: is there available disk space on the host?
[PASS] DD0028: is there available VM disk space?
[PASS] DD0018: does the host support virtualization?
[PASS] DD0001: is the application running?
[PASS] DD0017: can a VM be started?
[PASS] DD0016: is the LinuxKit VM running?
[PASS] DD0011: are the LinuxKit services running?
[PASS] DD0004: is the Docker engine running?
[PASS] DD0015: are the binary symlinks installed?
[PASS] DD0031: does the Docker API work?
[PASS] DD0013: is the $PATH ok?
[PASS] DD0003: is the Docker CLI working?
[PASS] DD0014: are the backend processes running?
[PASS] DD0007: is the backend responding?
[PASS] DD0008: is the native API responding?
[PASS] DD0009: is the vpnkit API responding?
[PASS] DD0010: is the Docker API proxy responding?
[FAIL] DD0012: is the VM networking working? network checks failed: failed to ping host: exit status 1
[2022-11-11T21:35:58.917790000Z][com.docker.diagnose][I] ipc.NewClient: 990ce9f5-diagnose-network -> diagnosticd.sock diagnosticsd
[common/pkg/diagkit/gather/diagnose.runIsVMNetworkingOK()
[ common/pkg/diagkit/gather/diagnose/network.go:34 +0xc8
[common/pkg/diagkit/gather/diagnose.(*test).GetResult(0x103023c20)
[ common/pkg/diagkit/gather/diagnose/test.go:46 +0x40
[common/pkg/diagkit/gather/diagnose.Run.func1(0x103023c20)
[ common/pkg/diagkit/gather/diagnose/run.go:17 +0x40
[common/pkg/diagkit/gather/diagnose.walkOnce.func1(0x2?, 0x103023c20)
[ common/pkg/diagkit/gather/diagnose/run.go:142 +0x80
[common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x1, 0x103023c20, 0x1400046f718)
[ common/pkg/diagkit/gather/diagnose/run.go:151 +0x88
[common/pkg/diagkit/gather/diagnose.walkDepthFirst(0x0, 0x103023da0, 0x1400046f718)
[ common/pkg/diagkit/gather/diagnose/run.go:148 +0x50
[common/pkg/diagkit/gather/diagnose.walkOnce(0x102afc4a0?, 0x1400059f890)
[ common/pkg/diagkit/gather/diagnose/run.go:137 +0x8c
[common/pkg/diagkit/gather/diagnose.Run(0x103023da0, 0x140001b4320?, {0x1400059fb08, 0x1, 0x1})
[ common/pkg/diagkit/gather/diagnose/run.go:16 +0x160
[main.checkCmd({0x140001b4010?, 0x6?, 0x4?}, {0x0, 0x0})
[ common/cmd/com.docker.diagnose/main.go:133 +0xdc
[main.main()
[ common/cmd/com.docker.diagnose/main.go:99 +0x30c
[2022-11-11T21:35:58.918377000Z][com.docker.diagnose][I] (56ebb988) 990ce9f5-diagnose-network C->S diagnosticsd POST /check-network-connectivity: {"ips":["192.168.1.9","100.127.100.1"]}
[2022-11-11T21:35:59.449086000Z][com.docker.diagnose][W] (56ebb988) 990ce9f5-diagnose-network C<-S 9179d285-diagnosticsd POST /check-network-connectivity (530.810541ms): failed to ping host: exit status 1
[SKIP] DD0030: is the image access management authorized?
[PASS] DD0019: is the com.docker.vmnetd process responding?
[PASS] DD0033: does the host have Internet access?
[PASS] DD0018: does the host support virtualization?
[PASS] DD0001: is the application running?
[PASS] DD0017: can a VM be started?
[PASS] DD0016: is the LinuxKit VM running?
[PASS] DD0011: are the LinuxKit services running?
[PASS] DD0004: is the Docker engine running?
[PASS] DD0015: are the binary symlinks installed?
[PASS] DD0031: does the Docker API work?
[PASS] DD0032: do Docker networks overlap with host IPs?
Please investigate the following 1 issue:
1 : The test: is the VM networking working?
Failed with: network checks failed: failed to ping host: exit status 1
VM seems to have a network connectivity issue. Check your host firewall and anti-virus settings in case they are blocking the VM.