[英]pip install nsenter times out in alpine docker container
我正在使用alpine:3.7,我嘗試安裝python nsenter軟件包:
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
它卡在:
Collecting nsenter>=0.2
Downloading https://files.pythonhosted.org/packages/a5/46/1bfe9cca7f2e12cb2d7d9082b14feb785bc63628fb795a34d53ef57a8b93/nsenter-0.2.tar.gz
即使我嘗試從容器內安裝它:
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並用於安裝:
python setup.py install
README.rst說:
Requires Python 2.6 or higher
但是對於安裝,它僅使用python3 / pip3:
Install from PyPI::
sudo pip3 install nsenter
Install from git source::
python3 setup.py install
有什么想法如何安裝nsenter而不必更改我的python版本嗎? 也許這可能是需要向上游打開的錯誤?
問題是與基礎架構有關! 我需要將--mtu = 1450添加到我的docker服務中,因為可能來自nsenter的某些依賴項需要更大的數據包...現在,它可以成功運行!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.