In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains the "Centos7 installation docker compse pit how to solve", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's train of thought slowly in depth, together to study and learn "Centos7 installation docker compse pit how to solve" it!
1. Official installation mode
Sudo curl-l https://github.com/docker/compose/releases/download/1.18.0/docker-compose-`uname-s`-`uname-m`-o / usr/local/bin/docker-composesudo chmod + x / usr/local/bin/docker-compose gives docker-compose execution permission
Docker-compose-version tests whether the installation is successful, and prints out the version information of docker-compose if it is successful
This method seems to require fq, which can be connected to the external network.
two。 Use python-pip for installation
First, check whether the python-pip package is installed in centos7. The command is as follows:
Pip-v
Running result:
Without the python-pip package, execute the following command to install the epel-release dependency:
Yum-y install epel-release
Running result:
After successful execution, then execute the following command to install python-pip:
Yum-y install python-pip
Running result:
Upgrade the pip components installed in the previous step with the following command:
Sudo pip install-upgrade pip
Running result:
The following error may occur:
The solution is to upgrade using the following ways:
Sudo pip install-upgrade pip-- trusted-host pypi.python.org
If there is a: pkg_resources.distributionnotfound: backports.ssl-match-hostname > = 3.5 error, update the version of backports.ssl-match-hostname using the following command:
Sudo pip install-upgrade backports.ssl_match_hostname
Check the pip environment by executing the following command again:
Pip-v
Running result:
Install docker-compose by executing the following command:
Sudo pip install docker-compose
There may also be an error in upgrading pip components: there was a problem confirming the ssl certificate: [ssl:
Certificate_verify_failed] certificate verify failed (_ ssl.c:590). The solution is to install it using the following command:
Sudo pip install-u docker-compose-- trusted-host pypi.python.org
It may also occur: readtimeouterror: httpsconnectionpool (host='pypi.python.org', port=443): read timed out error, the solution is as follows:
Sudo pip-default-timeout=200 install-u docker-compose
If both of the above 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 successful installation interface appears:
Thank you for your reading, the above is the "Centos7 installation docker compse pit how to solve" the content, after the study of this article, I believe you on the Centos7 installation docker compse pit how to solve this problem has a deeper experience, the specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.