-bash: docker-compose: command not found two solutions

Thursday, Apr 2, 2020 | 1 minute read | Updated at Thursday, Apr 2, 2020

@

-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

© 2018 - 2026 vpslala

🌱 Powered by Hugo with theme Dream.