我正在尝试使用pip构建docker映像。从本地桌面运行时,以下命令有效:
virtualenv venv && \
venv/bin/pip install -r requirements.txt --index-url <secure URL> --extra-index-url <secure URL>/another directory
但是,当我在docker映像中运行此操作时,会出现302个错误:
Looking in indexes: <secure URL>
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 302 Found',))': <secure URL>
是否需要将其他环境设置传递到Docker容器中
目前没有回答
相关问题 更多 >
编程相关推荐