docker搭建python3的私有源--devpi
一、部署
# docker run -d --name devpi-lib -p 7104:7104 --env DEVPISERVER_HOST=0.0.0.0 --env DEVPISERVER_PORT=7104 --env DEVPISERVER_ROOT_PASSWORD=password --env DEVPISERVER_USER=lowinli --env DEVPISERVER_PASSWORD=password --env DEVPISERVER_MIRROR_INDEX=pypi --env DEVPISERVER_LIB_INDEX=devpi --env SOURCE_MIRROR_URL=https://mirrors.aliyun.com/pypi/simple --restart always --volume devpi:/var/lib/devpi dhub.kubesre.xyz/lowinli98/devpi:v0.1
二、访问
三、使用
# pip3.8 install -r requirements.txt -i http://root:password@192.168.110.30:7104/root/pypi --trusted-host 192.168.110.30 --default-timeout=100
原文地址:https://blog.csdn.net/tingting0119/article/details/140692206
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!