Leland Network Mirror

当前支持的镜像:
Docker Hub
PyPI
NPM
GitHub

Docker Hub

临时使用

原来拉取镜像

docker pull alpine:latest
docker pull nginx/nginx-ingress

镜像拉取镜像

docker pull mirror.yllhwa.com/library/alpine:latest
docker tag mirror.yllhwa.com/library/alpine:latest alpine:latest
docker pull mirror.yllhwa.com/nginx/nginx-ingress
docker tag mirror.yllhwa.com/nginx/nginx-ingress nginx/nginx-ingress

设为默认

修改文件 /etc/docker/daemon.json(如果不存在则创建)

{
      "registry-mirrors": [
            "https://mirror.yllhwa.com",
    ]
}

重启 Docker

systemctl daemon-reload
systemctl restart docker

PyPI

临时使用

pip install -i https://mirror.yllhwa.com/simple some-package

设为默认

pip config set global.index-url https://mirror.yllhwa.com/simple

恢复默认

pip config unset global.index-url

NPM

临时使用

npm --registry https://mirror.yllhwa.com/ install some-package

设为默认

npm config set registry https://mirror.yllhwa.com

恢复默认

npm config set registry https://registry.npmjs.org

GitHub

使用

git clone https://mirror.yllhwa.com/yllhwa/RSSWorker.git