Docker-compose Installation On A Debian, Ubuntu, Arch, Kali, Fedora, Raspbian And MacOS

Docker-compose Installation On A Debian, Ubuntu, Arch, Kali, Fedora, Raspbian And MacOS

docker-compose

Run and manage multi container docker applications.

Maintainer: Docker Compose Team



Section: admin

Install docker-compose

  • Debian apt-get install docker-compose Click to copy
  • Ubuntu apt-get install docker-compose Click to copy
  • Arch Linux pacman -S docker-compose Click to copy
  • Kali Linux apt-get install docker-compose Click to copy
  • Fedora dnf install docker-compose Click to copy
  • Raspbian apt-get install docker-compose Click to copy
  • macOS brew install docker-compose Click to copy

Run and manage multi container docker applications.

How to use docker-compose?

Below are few example commands for docker-compose that you can use in the terminal.

Create and start all containers in the background using a `docker-compose.yml` file from the current directory:
docker-compose up -dClick to copy
Start all containers, rebuild if necessary:
docker-compose up --buildClick to copy
Start all containers using an alternate compose file:
docker-compose --file path/to/file upClick to copy
Stop all running containers:
docker-compose stopClick to copy
Stop and remove all containers, networks, images, and volumes:
docker-compose downClick to copy
Follow logs for all containers:
docker-compose logs --followClick to copy
Installing docker-compose command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Arch, Kali, Fedora, Raspbian and macOS operating systems. Once you run the command it will install the latest version of docker-compose 2026 package in your OS.