I installed Docker Desktop v4.12.0 on windows 10 which installed docker v20.10.17.
I am trying to run docker-compose pull but get the response docker: 'compose' is not a docker command. I've tried reinstalling Docker Desktop but I still get the same error.
docker-compose --version and docker compose --version both return the same error message.
I'm new to docker and not sure if I've done something incorrectly. Any help would be greatly appreciated!
This can happen when we have older files laying around in windows path.
Try this:
where docker
or
where docker-compose
If you have multiple paths, maybe one of them is very old. In my case, I had to delete docker.exe and dockerd.exe in the root of c:\Program Files\Docker. The new files should be in the resources\bin folder.
If you are having difficulties running cmd "where" in Windows/Powershell, try this way:
PS C:\Users\canoas> where.exe docker
C:\Program Files\Rancher Desktop\resources\resources\win32\bin\docker.exe
C:\Program Files\Rancher Desktop\resources\resources\linux\bin\docker
PS C:\Users\canoas> where.exe docker-compose
C:\Program Files\Rancher Desktop\resources\resources\win32\bin\docker-compose.exe
C:\Program Files\Rancher Desktop\resources\resources\linux\bin\docker-compose
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With