centos7 安裝docker-compose
docker-compose是部署多個容器的重要工具。
1、首先檢查linux有沒有安裝python-pip包,直接執行 yum
install python-pip -y;
2、沒有python-pip包就執行命令 yum
-y install epel-release;
3、執行成功之後,再次執行yum
install python-pip;
4、對安裝好的pip進行升級 pip
install --upgrade pip;
至此,pip工具就安裝好了,下面使用pip
安裝docker-compose
5、pip
install docker-compose;
輸入docker-compose驗證,報錯的話就百度,下面這個報錯是百度的:
- [root@localhost ~]# docker-compose
- Traceback (most recent call last):
- File "/usr/bin/docker-compose", line 5, in <module>
- from pkg_resources import load_entry_point
- File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 3011, in <module>
- parse_requirements(__requires__), Environment()
- File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 626, in resolve
- raise DistributionNotFound(req)
- pkg_resources.DistributionNotFound: backports.ssl-match-hostname>=3.5
解決:
pip install --upgrade backports.ssl_match_hostname
相關文章
- CentOS7下安裝Docker-ComposeCentOSDocker
- CentOS7下安裝Docker-Compose操作記錄CentOSDocker
- 一行命令安裝docker和docker-compose(CentOS7)DockerCentOS
- docker-compose 安裝Docker
- docker-compose安裝Docker
- docker-compose安裝lokiDockerLoki
- Centos 7 安裝 docker-composeCentOSDocker
- 7、docker-compose安裝使用Docker
- Centos7安裝安裝部署dockerCentOSDocker
- CentOS7安裝php、安裝MySqlCentOSPHPMySql
- Ubuntu 安裝最新 docker docker-composeUbuntuDocker
- linux 命令安裝docker-composeLinuxDocker
- docker-compose安裝pgsql和pgvectorDockerSQL
- Ubuntu安裝Docker及Docker-composeUbuntuDocker
- 安裝centos7最小化安裝CentOS
- Centos7 阿里雲映象 2207-02 下安裝docker-compose後,docker-compose version 命令失效問題CentOS阿里Docker
- CentOS7 安裝 memcacheCentOS
- CentOS7 安裝 dockerCentOSDocker
- CentOS7 安裝 MySQLCentOSMySql
- CentOS7安裝RedisCentOSRedis
- Centos7 安裝ffmpegCentOS
- centos7安裝protobufCentOS
- 4.1 CentOS7安裝CentOS
- CentOS7 安裝NginxCentOSNginx
- centos7 安裝pipCentOS
- Centos7安裝RabbitMQCentOSMQ
- centos7安裝dockerCentOSDocker
- centos7安裝iptablesCentOS
- CentOS7安裝xrdpCentOS
- centos7 安裝rocketmqCentOSMQ
- centos7 安裝 rcloneCentOS
- centos7安裝mysqlCentOSMySql
- Centos7 安裝 NginxCentOSNginx
- centos7安裝nginxCentOSNginx
- centos7安裝教程詳解 centos7安裝詳細步驟CentOS
- Linux 下的 Docker 安裝與使用 Docker-compose 安裝LinuxDocker
- Mac基於docker-compose 安裝 oracleMacDockerOracle
- linux下的docker-compose安裝LinuxDocker