前言:
因为一些神秘原因,Docker国内所有镜像源于6月左右全部关闭,这将导致Docker使用受到影响所有镜像无法拉取,恰巧最近需要使用Docker镜像,所以有了这篇搭建文章
准备工作:
1. 已安装curl服务
2. 已安装宝塔面板,因为我有多个服务,所以本教程基于宝塔面板;
3. 搭建代理的服务器需要可以访问GitHub仓库中的Docker-Proxy项目
Docker代理搭建步骤:
1. 宝塔安装Docker环境,等待安装完成: 管理后台→Docker
2. shell终端执行如下命令将进入安装页面:
sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/dqzboy/Docker-Proxy/main/install/DockerProxy_Install.sh)"
3. 按照提示等待安装完成
设置反向代理将服务及UI:
1. 宝塔管理后台-添加站点-反向代理-添加反向代理:
目标URL:http://127.0.0.1:50000,端口安装完成后会展示;
2. 申请SSL证书并部署,建议开启强制SSL
Docker镜像加速设置及手动拉取镜像
1. 编辑daemon.json,将链接配置为自己的URL,后续所有镜像拉取将自动加速
sudo vim /etc/docker/daemon.json
{"registry-mirrors": ["https://xxx.docker.com"]}
systemctl restart docker
2. 手动拉取镜像,适合不经常拉取镜像的Docker玩家
docker pull xxx.docker.com/library/nginx:latest
代理实现原理
如果担心加速服务器被GFW封锁,可以添加策略,加速服务器只放行指定IP的入流量;











感谢分享,文章很有帮助。
Betspeedcom, fast betting indeed! I like the quick payouts and how easy it is to find different markets. If you value efficiency, this site is for you. Go check out betspeedcom!
Aces up, fellas! batpkrgameonline is where I’m testing my skills. The community’s cool, and the competition’s tight. Come join the action: batpkrgameonline
Alright, abcbetlogin! Place your bets! Quick login, easy to use. Let’s get this bread! Jump in: abcbetlogin