github代理工具
域名: https://mirror.ghproxy.com
使用方式:
支持终端命令行 git clone , wget , curl 等工具下载.
支持 raw.githubusercontent.com , gist.github.com , gist.githubusercontent.com 文件下载.
注意:不支持 SSH Key 方式 git clone 下载
git clone
git clone https://mirror.ghproxy.com/https://github.com/stilleshan/ServerStatus
git clone 私有仓库
# Clone 私有仓库需要用户在 Personal access tokens 申请 Token 配合使用.
git clone https://user:your_token@mirror.ghproxy.com/https://github.com/your_name/your_private_repo
wget & curl
wget https://mirror.ghproxy.com/https://github.com/stilleshan/ServerStatus/archive/master.zip
wget https://mirror.ghproxy.com/https://raw.githubusercontent.com/stilleshan/ServerStatus/master/Dockerfile
curl -O https://mirror.ghproxy.com/https://github.com/stilleshan/ServerStatus/archive/master.zip
curl -O https://mirror.ghproxy.com/https://raw.githubusercontent.com/stilleshan/ServerStatus/master/Dockerfile
Docker代理加速
方案一:修改 daemon.json ( 推荐 )
如果仅仅是使用 Docker Hub 官方镜像,可以将本站加入到 daemon.json 文件中,那么可以直接使用正常的官方命令来拉取镜像或启动容器,系统会自动使用本站代理服务,而不会有上述镜像名的问题.
配置 /etc/docker/daemon.json
{ "registry-mirrors": [ "https://dockerproxy.com" ] }
方案二: Docker Hub官方镜像代理
常规镜像代理
官方命令:docker pull stilleshan/frpc:latest
代理命令:docker pull dockerproxy.com/stilleshan/frpc:latest
根镜像代理
官方命令:docker pull nginx:latest
代理命令:docker pull dockerproxy.com/library/nginx:latest
GitHub Container Registry
常规镜像代理
官方命令:docker pull ghcr.io/username/image:tag
代理命令:docker pull ghcr.dockerproxy.com/username/image:tag
Google Container Registry
常规镜像代理
官方命令:docker pull gcr.io/username/image:tag
代理命令:docker pull gcr.dockerproxy.com/username/image:tag
Google Kubernetes
常规镜像代理
官方命令:docker pull k8s.gcr.io/username/image:tag
官方命令:docker pull registry.k8s.io/username/image:tag
代理命令:docker pull k8s.dockerproxy.com/username/image:tag
根镜像代理
官方命令:docker pull k8s.gcr.io/coredns:1.6.5
官方命令:docker pull registry.k8s.io/coredns:1.6.5
代理命令:docker pull k8s.dockerproxy.com/coredns:1.6.5
Quay.io
常规镜像代理
官方命令:docker pull quay.io/username/image:tag
代理命令:docker pull quay.dockerproxy.com/username/image:tag
Microsoft Artifact Registry
常规镜像代理
官方命令:docker pull mcr.microsoft.com/azure-cognitive-services/diagnostic:latest
代理命令:docker pull mcr.dockerproxy.com/azure-cognitive-services/diagnostic:latest
Linux服务器设置代理
vim set-proxy.sh
export HTTPS_PROXY=http://192.168.31.215:7890 #本地的代理地址
export NO_PROXY="127.0.0.1/8,192.168.100.0/24,*.haoge.com,.cluster.local,.svc.cluster.local,10.100.0.0/16,10.200.0.0/16"
exec bash
其他代理
镜像加速:https://github.com/DaoCloud/public-image-mirror
二进制文件加速:https://github.com/DaoCloud/public-binary-files-mirror
Helm 加速:https://github.com/DaoCloud/public-helm-charts-mirror
作者:于浩 创建时间:2024-01-22 19:12
最后编辑:于浩 更新时间:2024-07-18 09:14
最后编辑:于浩 更新时间:2024-07-18 09:14