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?
Docker version: 4.32.0
need to remove the dash from docker-compose
to docker compose
$ docker compose up --build
or
$ docker compose up -d
If not work, you can try this:
Docker > Settings > Advanced > select
User then
Apply and Restart
and use docker compose
- Hope it will work.
On my system macOS 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 using version: 'x.y'
you will get this warning version is obsolete
need to remove
the first line (version: 'x.y'
) of the file, it’s now deprecated
.