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

mac m1 pro 无法ping通容器 #26

Open
mqjd opened this issue Mar 14, 2024 · 1 comment
Open

mac m1 pro 无法ping通容器 #26

mqjd opened this issue Mar 14, 2024 · 1 comment

Comments

@mqjd
Copy link

mqjd commented Mar 14, 2024

系统信息:

芯片:Apple M1 Pro
系统:sonoma 14.4

docker-connector.log
2024/03/14 19:52:21 load config(true) => /opt/homebrew/etc/docker-connector.conf
2024/03/14 19:52:21 interface => utun1
2024/03/14 19:52:21 command => ifconfig utun1 inet 192.168.251.2 192.168.251.1 netmask 255.255.255.255 up
2024/03/14 19:52:21 command => route -n add -host 192.168.251.2 -interface utun1
2024/03/14 19:52:21 drawin setup done.
2024/03/14 19:52:21 command => route -n delete -net 172.18.0.0/16
2024/03/14 19:52:21 command => route -n add -net 172.18.0.0/16 192.168.251.1
2024/03/14 19:52:21 command => route -n delete -net 172.17.0.0/16
2024/03/14 19:52:21 command => route -n add -net 172.17.0.0/16 192.168.251.1
2024/03/14 19:52:21 listen => 127.0.0.1:2511
2024/03/14 19:52:21 load peer => 127.0.0.1:63860
2024/03/14 19:52:23 client init => 127.0.0.1:58166
2024/03/14 19:52:23 send controls => 127.0.0.1:58166 map[]
2024/03/14 19:52:23 reply client => 127.0.0.1:58166 0

desktop-connector容器日志

interface => tun0
command => ip addr add dev tun0 local 192.168.251.1 peer 192.168.251.2
command => ip route add 192.168.251.0/24 via 192.168.251.2 dev tun0
local => 192.168.5.1:51785
remote => 192.168.5.2:2511

➜ ~ traceroute 172.18.0.11
traceroute to 172.18.0.11 (172.18.0.11), 64 hops max, 40 byte packets
1 192.168.251.1 (192.168.251.1) 12.146 ms 1.272 ms 0.926 ms
2 * * *
3 * *

@MchalTesla
Copy link

注意一下配置文件的路径,你用的是homebrew安装的,会与Github主页写的配置文件位置不一样
2024/03/14 19:52:21 load config(true) => /opt/homebrew/etc/docker-connector.conf
日志这里已经写明了配置文件路径

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