300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > docker打包镜像出现python安装包超时的现象

docker打包镜像出现python安装包超时的现象

时间:2022-06-04 22:27:12

相关推荐

docker打包镜像出现python安装包超时的现象

现象

Step 3 : RUN pip install -r requirements.txt---> Running in fe0b84217ad1Collecting blinker==1.3 (from -r requirements.txt (line 1))Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProtocolError('Connection aborted.

解决方法

本质上是dns服务导致,尝试了很多种办法,发现下面的方法最好用:

docker build --network=host -t image_name .

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。