Linux

How to Run Multi-Container Applications with Docker Compose (Docker Compose Install)

mark340 2023. 8. 30. 10:32

Installation

Docker Compose relies on Docker Engine. So before installing it make sure you have Docker Engine installed on your system.

On desktop systems like Docker Desktop for Mac and Windows, Docker Compose is included as part of those desktop installs. You don’t need to install it manually.

On Linux systems, you’ll need to

  1. Install Docker Engine
  2. Run the following command to download the current stable release of Docker Compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

3. Apply executable permissions to the binary:

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

Now test the installation using the following command

docker-compose --version