In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the example analysis of Centos7 installation docker compse, which is introduced in great detail and has certain reference value. Interested friends must read it!
I. Installation method
1. Official installation method
sudo curl -L https://github.com/docker/comse/releases/download/1.18.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compositeudo chmod +x /usr/local/bin/docker-compose give docker-compose enforcement limits
docker-compose --version Test whether the installation is successful. If successful, print the version information of docker-compose.
This method seems to require FQ, which can be connected to the external network.
2. Install using python-pip
First check if python-pip package has been installed in centos7, command as follows:
pip -V
Run Results:
If there is no python-pip package, execute the following command to install the epel-release dependency:
yum -y install epel-release
Run Results:
After successful execution, execute the following command to install python-pip:
yum -y install python-pip
Run Results:
To upgrade the pip component installed in the previous step, the command is as follows:
sudo pip install --upgrade pip
Run Results:
The following errors may occur:
The workaround is to upgrade as follows:
sudo pip install -upgrade pip --trusted-host pypi.python.org
If the error pkg_resources.DistributionNotFound: backports.ssl-match-hostname>=3.5 occurs, update the version of backports.ssl-match-hostname with the following command:
sudo pip install --upgrade backports.ssl_match_hostname
Run the following command again to check the pip environment:
pip -V
Run Results:
Execute the following command to install Docker-Compose:
sudo pip install docker-compose
There was a problem confirming the ssl certificate: [SSL:
CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590), which can be resolved by installing the following command:
sudo pip install -U docker-compose --trusted-host pypi.python.org
ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out error.
sudo pip --default-timeout=200 install -U docker-compose
If both errors occur, use the following command:
sudo pip --default-timeout=200 install -U docker-compose --trusted-host pypi.python.org
Without any errors, the following installation success screen will appear:
The above is "Centos7 installation docker compse sample analysis" all the content of this article, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.