首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >pip在高寒码头集装箱中安装nsenter超时

pip在高寒码头集装箱中安装nsenter超时
EN

Stack Overflow用户
提问于 2018-05-02 13:50:53
回答 1查看 418关注 0票数 1

我使用的是高山:3.7,我试着安装python软件包:

代码语言:javascript
复制
FROM alpine:3.7
MAINTAINER blah-blah <blah@blah.com>

RUN echo "http://dl-2.alpinelinux.org/alpine/v3.7/main" >> /etc/apk/repositories && \
    echo "http://dl-3.alpinelinux.org/alpine/v3.7/main" >> /etc/apk/repositories && \
    echo "http://dl-4.alpinelinux.org/alpine/v3.7/main" >> /etc/apk/repositories && \
    echo "http://dl-5.alpinelinux.org/alpine/v3.7/main" >> /etc/apk/repositories

RUN apk --update --no-cache add python py2-pip docker
RUN pip install --upgrade pip setuptools nsenter

它被粘在:

代码语言:javascript
复制
 Collecting nsenter>=0.2 
 Downloading https://files.pythonhosted.org/packages/a5/46/1bfe9cca7f2e12cb2d7d9082b14feb785bc63628fb795a34d53ef57a8b93/nsenter-0.2.tar.gz

即使我试图从容器中安装它:

代码语言:javascript
复制
pip install nsenter -vv
Collecting nsenter
1 location(s) to search for versions of nsenter:
* https://pypi.org/simple/nsenter/
Getting page https://pypi.org/simple/nsenter/
Looking up "https://pypi.org/simple/nsenter/" in the cache
No cache entry available
Starting new HTTPS connection (1): pypi.org
https://files.pythonhosted.org:443 "GET /packages/a5/46/1bfe9cca7f2e12cb2d7d9082b14feb785bc63628fb795a34d53ef57a8b93/nsenter-0.2.tar.gz HTTP/1.1" 200 4324
Downloading https://files.pythonhosted.org/packages/a5/46/1bfe9cca7f2e12cb2d7d9082b14feb785bc63628fb795a34d53ef57a8b93/nsenter-0.2.tar.gz
Downloading from URL https://files.pythonhosted.org/packages/a5/46/1bfe9cca7f2e12cb2d7d9082b14feb785bc63628fb795a34d53ef57a8b93/nsenter-0.2.tar.gz#sha256=876a18cb03de85948e4cd72fd4cfda4879561b7264f5722603f6437d452a25cb (from https://pypi.org/simple/nsenter/)
Ignoring unknown cache-control directive:
Ignoring unknown cache-control directive: immutable
Updating cache with response from "https://files.pythonhosted.org/packages/a5/46/1bfe9cca7f2e12cb2d7d9082b14feb785bc63628fb795a34d53ef57a8b93/nsenter-0.2.tar.gz"
Caching due to etag
Running setup.py (path:/tmp/pip-install-iLC2FC/nsenter/setup.py) egg_info for package nsenter
Running command python setup.py egg_info

我甚至尝试从pypi存储库https://pypi.org/simple/nsenter/中获取nsenter,并用于安装:

代码语言:javascript
复制
python setup.py install

README.rst说:

代码语言:javascript
复制
Requires Python 2.6 or higher

但安装时只使用python3 3/pip3 3:

代码语言:javascript
复制
Install from PyPI::
sudo pip3 install nsenter

Install from git source::
python3 setup.py install

有什么想法吗?如何在不更改我的python版本的情况下安装nsenter?也许这可能是一个需要在上游打开的漏洞?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-05-04 09:19:45

这个问题与基础设施有关!我需要将-mtu=1450添加到我的码头服务中,因为可能有一些来自nsenter的依赖需要更大的数据包.现在它成功运行了!

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/50136318

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档