docker-compose command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
docker-compose: command not found
or when using sudo you get the following error message
sudo: docker-compose: command not found
Solutions to docker-compose: command not found
How To Fix docker-compose: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu docker-compose is provided by docker-compose package.
docker-compose is:
docker-compose is a service management software built on top of docker. Define your services and their relationships in a simple YAML file, and let compose handle the rest.
To fix this problem, we can install more using the command below.
sudo apt-get -y install docker-compose
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install docker-compose.
sudo apt -y install docker-compose
Or if you have aptitude installed you can use the following command.
sudo aptitude install docker-compose
Summary
In this tutorial we learn how to fix docker-compose command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.