问题:
生成dockerfile镜像的时候,获取supervisor报错以下信息:
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2e9fe10>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/supervisor/
分析:
经过检查,发现centos7的桌面版系统,没有安装pip。安装pip即可
解决:
使用以下命令安装pip
# yum -y install epel-release
Loaded plugins: fastestmirror, langpacks
base | 3.6 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
updates/7/x86_64/primary_db | 6.0 MB 00:22
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package epel-release.noarch 0:7-9 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
epel-release noarch 7-9 extras 14 k
Transaction Summary
================================================================================
Install 1 Package
Total download size: 14 k
Installed size: 24 k
Downloading packages:
epel-release-7-9.noarch.rpm | 14 kB 00:02
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : epel-release-7-9.noarch 1/1
Verifying : epel-release-7-9.noarch 1/1
Installed:
epel-release.noarch 0:7-9
Complete!
[root@localhost centos7]# yum install python-pip
Loaded plugins: fastestmirror, langpacks
epel/x86_64/metalink | 7.2 kB 00:00
epel | 4.7 kB 00:00
(1/3): epel/x86_64/group_gz | 266 kB 00:02
(2/