skip to Main Content

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


  1. 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

    Login or Signup to reply.
  2. 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 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 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search