Running docker compose up
gives docker: 'compose' is not a docker command.
But docker-compose up
works just fine.
What gives? I thought compose was supposed to be part of the docker cli now.
How can I run docker compose up
and get the same/similar behavior as docker-compose up
?
docker --version
-> Docker version 20.10.10, build b485636f4b
docker-compose --version
-> Docker Compose version 2.1.1
It's because I had docker installed not through docker desktop.
I was using a minikube for my docker daemon, and the basic docker cli. But the basic cli (installed through brew install docker
) doesn't have docker compose
, that's part of docker desktop.
You can find the rest of that info here: