We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LightMirrors是一个开源的缓存镜像站服务,用于在内网加速软件包下载和镜像拉取,基于Aria2实现了下载进度显示。
目前支持DockerHub、PyPI、PyTorch、NPM等镜像缓存服务。
Github: https://github.com/NoCLin/LightMirrors
可用于 需要缓存大的package(如python 的 torch 和 dockerhub的nvidia/cuda)等的场景:
nvidia/cuda
一键部署:
docker-compose up
docker pull 的时候添加前缀 docker.local.homeinfra.org 即可。 如:docker pull docker.local.homeinfra.org/busybox
docker.local.homeinfra.org
docker pull docker.local.homeinfra.org/busybox
pip install jinja2 --index-url https://pypi.local.homeinfra.org/simple/
pip install jinja2 --index-url http://pypi.local.homeinfra.org/simple/ --trusted-host pypi.local.homeinfra.org
pip install torch --index-url https://torch.local.homeinfra.org/whl/
pip install torch --index-url http://torch.local.homeinfra.org/whl/ --trusted-host torch.local.homeinfra.org
把download.pytorch.org替换为 torch.local.homeinfra.org , 如果使用的是http,还需添加 --trusted-host torch.local.homeinfra.org。
download.pytorch.org
torch.local.homeinfra.org
--trusted-host torch.local.homeinfra.org
可以根据不同的硬件类型,切换不同的索引,如 https://download.pytorch.org/whl/cpu ,其中 cpu 可以替换为cu116/cu118/cu121/rocm5.4.2 等等。 具体请参考:https://pytorch.org/get-started/previous-versions/
cpu
npm 命令后加上 --registry https://npm.local.homeinfra.org 即可。
--registry https://npm.local.homeinfra.org
npm install -S express --registry https://npm.local.homeinfra.org
npm install -S express --registry http://npm.local.homeinfra.org
The text was updated successfully, but these errors were encountered:
好用!
Sorry, something went wrong.
谢谢推荐!
No branches or pull requests
LightMirrors是一个开源的缓存镜像站服务,用于在内网加速软件包下载和镜像拉取,基于Aria2实现了下载进度显示。
目前支持DockerHub、PyPI、PyTorch、NPM等镜像缓存服务。
Github: https://github.com/NoCLin/LightMirrors
可用于 需要缓存大的package(如python 的 torch 和 dockerhub的
nvidia/cuda
)等的场景:部署方法
一键部署:
支持的站点
DockerHub
docker pull 的时候添加前缀
docker.local.homeinfra.org
即可。如:
docker pull docker.local.homeinfra.org/busybox
PyPI
pip install jinja2 --index-url https://pypi.local.homeinfra.org/simple/
pip install jinja2 --index-url http://pypi.local.homeinfra.org/simple/ --trusted-host pypi.local.homeinfra.org
PyTorch
pip install torch --index-url https://torch.local.homeinfra.org/whl/
pip install torch --index-url http://torch.local.homeinfra.org/whl/ --trusted-host torch.local.homeinfra.org
把
download.pytorch.org
替换为torch.local.homeinfra.org
,如果使用的是http,还需添加
--trusted-host torch.local.homeinfra.org
。NPM
npm 命令后加上
--registry https://npm.local.homeinfra.org
即可。npm install -S express --registry https://npm.local.homeinfra.org
npm install -S express --registry http://npm.local.homeinfra.org
The text was updated successfully, but these errors were encountered: