Docker Desktop for macOS comes with pre-installed docker-compose. If docker-compose --version gives version 1.2X and above, you may skip this setup.

Installation Guide

  1. Open Terminal.

  2. Download a stable release of Docker Compose

sudo curl -L "$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

3. Create a symbolic link to /usr/bin

sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

4. Apply executable permissions to the binary

sudo chmod +x /usr/local/bin/docker-compose

5. To confirm that Docker Compose has been installed, check the docker compose version using

docker-compose --version


Last updated