我说我换了半天还是拉不动呢
帖子有解决办法
只能希望关镜像别拓展到apt pip这些吧…
真要都关了就有的折腾了
你说的什么语音hub啊?没看懂
Pull使用自建镜像可以正常拉取,但是push镜像的时候使用代理也一直报错,原来是SNI阻断了,上传不了镜像了…… 上传镜像,佬有啥解决方案吗?
docker buildx build \
--platform linux/amd64 \
--build-arg HTTP_PROXY=http://xxxxx \
--build-arg HTTPS_PROXY=http://xxxxx \
-t xx/xx:latest --push .
> exporting to image:
------
ERROR: failed to solve: DeadlineExceeded: failed to push xxx/xxx:latest: failed to do request: Head "https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/6a/xxxx/data?verify=1717921006-xxxx%3D": dial tcp 104.244.46.186:443: i/o timeout
没用,试过了
我凑巧刚push了一个镜像,没看到流量走了代理和镜像,应该是直连
但是也push上去了(而且试了两次,都成了)
可能和运营商之类的有关,还没墙彻底
不能设置docker命令走本地代理端口吗?
镜像文件都上传成功了,但都卡在了最后的 failed to do request: Head https://production.cloudflare.docker.com : dial tcp 104.244.46.186:443: i/o timeout
很奇怪,设置了 build-arg走代理,但是实际这个接口就是不走代理
build-arg好像只在构建镜像时候有用(git pull啦,pip install啦这些)
push好像没用
在systemctl设置代理试过了吗?
我是在systemctl设置了代理后,build时加上了build-arg,然后build和push就都没出问题
也有可能只是这个域名没墙结实…
试过,没用 ,systemctl设置了代理后,docker pull能正常拉取,但是push的时候就是卡在 production.cloudflare.docker.com过不去,纳闷了,不知道为啥push的时候这个接口就是不走代理
奇怪,systemctl设置了代理后,单独执行 docker push xxx:latest 可以成功了,但是多架构编译push的时候还是报那个错
docker buildx build \
--platform linux/amd64,linux/arm64 \
-t xxx:latest --push .
那就先build再push?
之前好像忘了说了,我是先build,再push的,没放在一起
而且我也没build多架构的(没用过)
这玩意小毛病有点多啊…
原来是这样,怪不得前天怎么拉都拉不下来,我还是换了阿里云的源才pull成功的
学到了
辛苦大佬
快进到把cloudflare给ban了
Mark 感谢分享!