解决使用Dockerfile来build镜像时pip install遇到的BUG
錯誤如下,遇到第二次了,而且看到網(wǎng)上很多回答并不管用,當(dāng)然也可能是對應(yīng)的問題不太相同。
Collecting requests (from -r requirements.txt (line 1))
??Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f443a504350>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/requests/
??Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f443a504990>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/requests/
??Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f443a504390>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/requests/
??Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f443a504090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/requests/
??Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f443a504a50>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',)': /simple/requests/
解決方法:service docker restart
總結(jié)
以上是生活随笔為你收集整理的解决使用Dockerfile来build镜像时pip install遇到的BUG的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Docker核心技术之Docker Co
- 下一篇: python的redis数据库连接与使用