- Add EPEL source
Run the following command in Shell to install EPEL source:
yum install -y epel-release - Install python-pip
Run the following command in Shell to install the Python-pip package:
#Pay attention to the python3 soft link
yum install -y python-pip
yum install -y python3-pip#python3install pip3!!! - Install docker-compose
Run the following command in Shell to install docker-compose through pip:
pip3 install docker-compose --default-timeout=100
4. Note
if prompted during installation
Could not find a version that satisfies the requirement docker-compose (from versions:)
No matching distribution found for docker-compose
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the'pip install --upgrade pip' command.
Just execute the command pip install --upgrade pip to update the pip version
5. Check the pip version
pip3 -V
6. Verify that the installation is successful
docker-compose -version
shows docker-compose version 1.18.0, build 8dd22a9 Indicates successful installation