在国内服务器上拉取 docker 镜像现在都出现 docker.io 连接不上的情况,可以跑个 sing-box ,开启 tun 模式,就可以拉取 docker 镜像了。
需要注意的是如果说你的 docker 还对外提供服务 需要打开 auto_route 以及 auto_redirect 这样 tun 模式就不会与 docker 网桥冲突 不然可能会出现打开 sing-box 时 docker 对外提供的服务访问不了
详细请看: https://github.com/wynemo/tech-notes/blob/master/science/sing-box/sing-box-for-docker-pull.md