无法从Docker容器访问主机VPN

时间:2019-05-04 16:09:40

标签: docker docker-networking

我已连接到主机(用于Windows的Docker )中的VPN,当我尝试以network = bridge或network = host模式从Docker容器ping VPN后面的端点时,以下错误:

f <- list(a = list(1, "false"), b = list(2, "true", "3"))
f1 <- list(a=list(1,"false"),b=list("2","true","3"))   

主机ipconfig

root@linux:/# ping 172.XX.XX.X
From 172.XX.XX.X icmp_seq=15 Destination Host Unreachable

Docker容器(ubuntu)ifconfig:

Windows IP configuration

VEthernet Ethernet Adapter (Pre Modifier):

   Specific DNS suffix for the connection. . :
   Link: local IPv6 address. . . : fe70 :: adaf2: d383d1b8% 27
   IPv4 address. . . . . . . . . . . . . . : 172.11.123.225
   Subnet mask . . . . . . . . . . . . : 255.255.255.240
   Default Gateway . . . . . :

Ethernet ethernet adapter (DockerNAT):

   Specific DNS suffix for the connection. . :
   IPv4 address. . . . . . . . . . . . . . : 10.0.75.1
   Subnet mask . . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . :

Wi-Fi wireless LAN adapter:

   IPv4 address. . . . . . . . . . . . . . : 192.178.1.14
   Subnet mask . . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . : 192.168.1.1

有帮助吗?

0 个答案:

没有答案