Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gg docker pull #29

Open
fenuo opened this issue Dec 1, 2022 · 8 comments
Open

gg docker pull #29

fenuo opened this issue Dec 1, 2022 · 8 comments

Comments

@fenuo
Copy link

fenuo commented Dec 1, 2022

gg config -w node=socks://192.168.1.33:7890
gg config
sudo -E gg -vv docker pull gcr.io/google-containers/busybox:latest


# 报错日志如下


Error response from daemon: Get "https://gcr.io/v2/": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
TRAC[0016] PtraceGetRegs: no such process               
TRAC[0016] child 229620 exited                          
TRAC[0016] child 229619 exited                          
TRAC[0016] child 229618 exited                          
TRAC[0016] child 229617 exited                          
TRAC[0016] child 229616 exited                          
TRAC[0016] child 229615 exited                          
TRAC[0016] child 229612 exited

@mzz2017
Copy link
Owner

mzz2017 commented Dec 1, 2022

docker问题同hmgle/graftcp#14

@fenuo
Copy link
Author

fenuo commented Dec 1, 2022

sudo sudo -E gg /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sockck

# log

FATA[0007] GetDialer:unable to connect to the proxy node: connectivity test failed: Get "https://connectivitycheck.gstatic.com/generate_204": read tcp 192.168.11.11:46568->104.21.6.224:443: read: connection reset by peer 

@mzz2017
Copy link
Owner

mzz2017 commented Dec 1, 2022

看起来是节点不行呢

@fenuo
Copy link
Author

fenuo commented Dec 1, 2022

gg config
cache.subscription.last_node=
no_udp=false
node=socks://192.168.1.33:7890
subscription.cache_last_node=true
subscription.link=
subscription.select=first
test_node_before_use=true
test_url=https://connectivitycheck.gstatic.com/generate_204


gg curl ipv4.appspot.com
能正确返回代理地址ip

@mzz2017
Copy link
Owner

mzz2017 commented Dec 1, 2022

根据 https://github.com/Dreamacro/clash/wiki/configuration ,7890是http端口,或者是混合端口。
但如果gg curl ipv4.appspot.com能正确返回代理地址ip,那就不应该存在connectivity test failed的问题,你看是不是应该 sudo -E ,而不是 sudo (没有 -E) sudo -E

@fenuo
Copy link
Author

fenuo commented Dec 1, 2022

开两个终端
终端1
gg --node socks://192.168.1.33:7890 dockerd -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock
终端2
docker pull gcr.io/google-containers/busybox:latest
是可以用的  但是这种方式的话需要停止原有的docker  线上服务器不能这样跑
请问有没有更优雅的方式

@mzz2017
Copy link
Owner

mzz2017 commented Dec 1, 2022

systemctl edit --full dockerd 加 gg 试试,建议 --node 而不是变量。然后用 systemctl restart dockerd

@mzz2017
Copy link
Owner

mzz2017 commented Dec 1, 2022

不能停止那就没办法,这个也要重启一次

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants