mac-docker-connector
mac-docker-connector copied to clipboard
mac m1 pro 无法ping通容器
系统信息:
芯片: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 * *
注意一下配置文件的路径,你用的是homebrew安装的,会与Github主页写的配置文件位置不一样 2024/03/14 19:52:21 load config(true) => /opt/homebrew/etc/docker-connector.conf 日志这里已经写明了配置文件路径