-bash: docker-compose: command not found two solutions
-bash: docker-compose: command not found two solutions
First, pip installation
apt-get python-pip //debian,ubuntu system
pip install --upgrade pip
pip install docker-compose
yum -y install epel-release //centos,fedora system
yum -y install python-pip
pip install --upgrade pip
pip install docker-compose
two, the official one-click command installation
curl -L "https://github.com/docker/compose/releases/download/1.24.0/docker-compose-$(uname -s)-$(uname -m)" -o
/usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
Check if the installation is successful
docker-compose -version