![]() | 1 fox2081 317 天前 最简单的就是 docker 部署个透明网关,然后 docker 配置里面代理走这个透明网关,不过我没用过威联通,不知道哪里改,如果能 ssh 进去,配置地址基本都大差不差 |
3 exqibao 317 天前 ![]() 修改代理配置,还有一个办法是使用 github actions 同步镜像到阿里云的免费镜像仓库 https://docs.docker.com/engine/daemon/proxy/ [Service] EnvirOnment="HTTP_PROXY=http://proxy.example.com:3128" EnvirOnment="HTTPS_PROXY=https://proxy.example.com:3129" |
4 ifwww 317 天前 |
![]() | 5 xuxuxu123 317 天前 阿里及华为 都有免费的源可以使用 |
![]() | 6 ZeekChatCom 317 天前 换源 |
![]() | 9 wxyrrcj 317 天前 我 nas 用的旁路由。。 你可以换源 或者自建加速源 Docker 镜像加速器,国内可用源 https://www.wxy97.com/archives/b5b225b6-7741-4560-be2f-2e6a4f671d9b |
10 oColtono 317 天前 现在的源也不一定稳定,可能用着用着就没了 我的方法比较简单无脑,我电脑上装了 clash rev ,打开了局域网连接。然后把 nas 的代理地址填上为同一局域网下的那个电脑的 clash rev ,就可以了 缺点是这台电脑不开机,nas 就不能翻墙。不过我需要折腾 docker 的时候,一般也要开这台电脑的。 这样就省去旁路由了。 |
11 guazila 317 天前 ![]() 用 CF worker 反代。 https://blog.lty520.faith/%E5%8D%9A%E6%96%87/%E8%87%AA%E5%BB%BAdocker-hub%E5%8A%A0%E9%80%9F%E9%95%9C%E5%83%8F |
![]() | 12 user100saysth 317 天前 @oColtono 在 nas 上运行 docker clash 赛 |
![]() | 13 user100saysth 317 天前 @oColtono 甚至 docker 也可以运行 openwrt,哈哈哈 |
![]() | 14 EJW 317 天前 之前群晖折腾 clash 失败了,就用 ssh 连接,控制台手动换源拉镜像了。 |
17 AastroLula 317 天前 我就是用的 cf worker 反向代理,非常好用,不用增加新的机器,也少了网络的折腾 |
![]() | 18 conglovely 317 天前 群晖走旁路由的话,Synology DDNS 会被解析成外网 IP ,怎么破? |
![]() | 19 superchijinpeng 317 天前 ![]() $ cat /etc/docker/daemon.json { "experimental": true, "fixed-cidr-v6": "2001:db8:1::/64", "ip6tables": true, "ipv6": true, "live-restore": true, "proxies": { "http-proxy": "http://192.168.50.13:7890", "https-proxy": "http://192.168.50.13:7890", "no-proxy": "127.0.0.0/8" }, "registry-mirrors": [] } |
20 rink9oled3 317 天前 via iPhone @fox2081 和蛋的,哈哈 |
21 oColtono 317 天前 @user100saysth #12 之前是这么干的,直到我这边 vmess 和 trojan 协议都秒封,只能上 vless 协议的时候,docker clash 就用不了了,因为不支持 vless |
![]() | 22 MIMIC 317 天前 用 nas 创建一个虚拟机,再装个类似 iStoreOS 的软路由+passwall2 |
![]() | 23 bumblebeek 317 天前 华硕路由器刷梅林走 clash |
24 horizon 317 天前 |
![]() | 25 Frytea 317 天前 via Android 自建 dockerio 镜像站,自用的就不贴了。 |
![]() | 26 frankilla 317 天前 |
![]() | 28 vmebeh 317 天前 via iPhone 网关上透明代理 |
![]() | 29 miaotaizi 316 天前 ![]() 本机拉取 镜像, 然后导出成 tar 上传到服务器, 由服务器导入 我是再也不想去折腾这种破问题了, 现在碰到镜像拉不下来 的一律这么搞 |
![]() | 30 axxxiba 316 天前 目前用 cf worker 反代。自持域名+镜像名可以直接 pull ,不求人且省心 |
![]() | 31 yinh0715 316 天前 我是在 daemon.json 里加 proxy |
![]() | 32 zenxds 316 天前 目前用 cf worker 反代。自持域名+镜像名可以直接 pull ,不求人且省心 |
![]() | 33 Ipsum 316 天前 早就不行了。现在才说?另外,都能上 v2 ,不会搞定这个问题? |
![]() | 34 raphaelsoul 316 天前 正在用 cf 反代 不过如果有原生支持的 app 我一般也不会首选容器 |
37 Linuj 316 天前 俺在 nas 指定网关为旁路由(代理出去),可解决该问题 |
38 88WoIdBJtW0N1gEk 316 天前 openwrt |
39 sn0wdr1am 316 天前 1. 换镜像源 2. 上代理 |
40 jwxyz1992 316 天前 cf worker 反向代理,之前是用的镜像,但是昨天镜像也挂了,换成 cf worker 了 |
![]() | 41 mMartin 316 天前 |
![]() | 42 wyjson 316 天前 via Android 可以自己做个代理,试试 docker.wyjson.com |
43 V2April 316 天前 在 pc 上 docker pull ,导出成压缩包,复制到 nas 再 docker load 。我现在都是这么做的,反正也不经常需要 pull |
![]() | 44 itxh 316 天前 个人整理的一些可用的镜像源,切换即可 [国内可用 Docker 镜像源加速器/DockerHub 镜像汇总(2024 年 11 月 25 日) - 文武科技柜]( https://www.wangdu.site/course/2109.html) |
45 pxiphx891 316 天前 路由器上用 openclash 代理 hub.docker.com 流量 |
46 sampeng 316 天前 via iPhone 自己有境外机器的话自建一个 docker 镜像库。用啥拉啥。比 cf 稳定多了… |
47 pigeon2049 316 天前 docker-compose.yml ``` name: docker-proxy services: registry: image: registry:2 ports: - '5000:5000' volumes: - ./config.yml:/etc/docker/registry/config.yml - registry_data:/var/lib/registry restart: always container_name: registry hostname: registry logging: driver: "json-file" options: max-size: "10m" volumes: registry_data: ``` config.yml ``` version: 0.1 log: fields: service: registry storage: cache: blobdescriptor: inmemory filesystem: rootdirectory: /var/lib/registry http: addr: :5000 headers: X-Content-Type-Options: [nosniff] proxy: remoteurl: http://registry-1.docker.io ``` nginx xxx domain.conf ``` server { listen 443 ssl; listen [::]:443 ssl; http2 on; ssl_certificate /path/to/cert.crt; ssl_certificate_key /path/to/cert.key; ssl_trusted_certificate /ssl/origin_ca_rsa_root.pem; ssl_protocols TLSv1.2 TLSv1.3; ssl_ecdh_curve X25519:P-256:P-384:P-521; ssl_early_data on; ssl_stapling on; ssl_stapling_verify off; add_header Strict-Transport-Security "max-age=63072000" always; server_name xxx.domains; location /v2/ { # Allow GET, HEAD, OPTIONS requests if ($request_method !~ ^(GET|HEAD|OPTIONS)$ ) { return 405; # Method Not Allowed } # Proxy requests to the registry proxy_pass http://127.0.0.1:5000; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; } } server { listen 80; listen [::]:80; server_name xxx.domains; return 301 https://xxx.domains$request_uri; } ``` usage: ``` 官方镜像 docker pull youdomain/library/postgres:12.22-bookworm 非官方镜像 docker pull youdomain/redis/redis-stack-server ``` |
![]() | 50 JensenQian 316 天前 前面放个 openwrt 的软路由爬墙 完事了 |
![]() | 52 jqknono 316 天前 除了梯子以外, 还要选海外 dns, 国内 dns 有污染 |
![]() | 53 marquina 316 天前 自建 docker hub 镜像: https://www.yooo.ltd/2024/06/08/self-host-docker-hub-mirror/ |
54 abc8678 316 天前 via Android 以前听过两种说法。一个是 nas 别挂梯子,以免 ddns 等受到影响。另一个是为了使用 docker ,需要用旁路由。所以还得细分域名才能挂了… |
![]() | 55 WhatTheBridgeSay 316 天前 网关透明代理解菌忧愁 |
![]() | 56 ysc3839 316 天前 端口转发+改 hosts 不就好了? |
57 HackerTerry 316 天前 没有旁路由,每次拉取 docker 镜像的时候就把威联通 nas 的 socks5 代理服务器设置成电脑的局域网 IP ,然后电脑打开 v2rayn 全局模式,用完了再恢复原来的配置 |
58 socoollike 316 天前 via iPhone 主路由分流特定域名到 WAN2 ,WAN2 上接个软路由双拨 |
![]() | 59 viazure 316 天前 用 CF 自建一个 Docker 仓库镜像:<https://github.com/cmliu/CF-Workers-docker.io> |
60 cornorj6 316 天前 旁路由,一步到位。换源和 docker 代理我都折腾过,不如旁路由省心。因为不仅仅 docker 需要翻墙,很多其他软件也要翻墙。 |
![]() | 61 wupher 316 天前 DNS 污染导致的 |
![]() | 62 BuZZZX 316 天前 有一说一,这鬼头像太上头了,妥妥精神污染 |
![]() | 63 wangpengfei4113 316 天前 无脑旁路 需要的设备连 不需要的走主路 |
![]() | 64 zpizstar1 316 天前 装一个 calsh ,给镜像配置代理,或者你弄个旁路由,让 nas 走旁路由 |
65 children009 315 天前 我就是用的 cf worker 反向代理 。 |
![]() | 66 freestyle 315 天前 via iPhone ss+ privoxy 转 http 代理. https://github.com/sunwinbus/docker-ss-privoxy |