After updating Docker on my mac to 4.32.0, docker-compose
seems to not work anymore. Everything with docker works fine, all the docker commands work fine. I can also use docker run
to start any container. However, docker-compsoe
and all its commands don’t seem to work.
What could be issue? Could it be that docker-compose
needs to be separately installed, or any configuration that needs to be done? Or is it deprecated?
2
Answers
I had this same problem too, it appears this was a bug in the update for Docker-Desktop and will be rectified by version 4.33
https://github.com/docker/for-mac/issues/7345#issuecomment-2232257396
In the link above they give this as a workaround:
sudo ln -sf /Applications/Docker.app/Contents/Resources/cli-plugins/docker-compose /usr/local/bin/docker-compose
Docker version:
4.32.0
need to remove the dash fromdocker-compose
todocker compose
or
If not work, you can try this:
Docker > Settings > Advanced >
select
Userthen
Apply and Restartand use
docker compose
– Hope it will work.
On my system
OSX 14.5
&Docker 4.32.0
it’s work on default docker settings (Docker > Settings > Advanced > System)
– using
docker compose
Also in the compose file
docker-compose.yml
if you are usingversion: 'x.y'
you will get this warning
version is obsolete
need to
remove
the first line (version: 'x.y'
) of the file, it’s nowdeprecated
.