Docker Community Forums

Share and learn in the Docker community.

How to update `docker-compose` on Docker Desktop for Mac?

I’m using the latest Docker Desktop for Mac (, which contains version 1.23.2 of docker-compose.

$ docker-compose --version
docker-compose version 1.23.2, build 1110ad01

I need a feature (the addition of the --env-file command line option) that was added in version 1.24. Do I need to install a version of docker-compose outside of Docker Desktop and put it a directory that has a higher priority path than Docker Desktop? Other alternatives?