PyPI local mirror/proxy/cache in self-host docker container
2.9K
PyPI local mirror/proxy/cache in self-host docker container
docker pull ray1ex/devpi:latest
docker run -dit --restart unless-stopped \
-p 3141:3141 \
-e UID=1000 -e GID=1000 \
-v /etc/localtime:/etc/localtime:ro \
-v /your/path:/data \
--name devpi ray1ex/devpi
pip install -i http://localhost:3141/root/pypi/+simple/ -U pip
pip config set global.index-url http://localhost:3141/root/pypi/+simple/
pip config set install.trusted-host http://localhost:3141/root/pypi/+simple/
pip install -U pip
The first request will take a few minutes depending on internet speed, please wait some logging like below.
2022-09-29 16:57:20,257 INFO [Wtx1] fswriter2: committed at 2
| Name | Defaule Value | Memo |
|---|---|---|
| GID | 1000 | - |
| UID | 1000 | - |
| PYPI_URL | https://pypi.org/simple/ | - |
| WAIT_TIME | 20 | - |
Content type
Image
Digest
sha256:e456acc9f…
Size
23.9 MB
Last updated
almost 2 years ago
docker pull ray1ex/devpi