2016-01-13 60 views
2

我無法從任何地方得到響應,但碼頭專用IP或內部容器。碼頭端口轉發綁定/ DNS/UDD沒有迴應

我的防火牆是VirtualBox虛擬機上禁用:

[email protected]:~# ufw status verbose 
Status: inactive 

在泊塢窗機測試碼頭工人集裝箱IP:

[email protected]:~# telnet 172.17.0.3 53 
Trying 172.17.0.3... 
Connected to 172.17.0.3. 
Escape character is '^]'. 
^] 
telnet> q 
Connection closed. 

內的泊塢窗機測試本地IP容器

[email protected]:/# telnet 127.0.0.1 53 
Trying 127.0.0.1... 
Connected to 127.0.0.1. 
Escape character is '^]'. 

[email protected]:~# telnet 127.0.0.1 53 
Trying 127.0.0.1... 
telnet: Unable to connect to remote host: Connection refused 

VirtualBox的

[email protected]:~$ ping 192.168.56.160 
PING 192.168.56.160 (192.168.56.160) 56(84) bytes of data. 
64 bytes from 192.168.56.160: icmp_seq=1 ttl=64 time=0.366 ms 
^C 
--- 192.168.56.160 ping statistics --- 
1 packets transmitted, 1 received, 0% packet loss, time 0ms 
rtt min/avg/max/mdev = 0.366/0.366/0.366/0.000 ms 

[email protected]:~$ telnet 192.168.56.160 53 
Trying 192.168.56.160... 
telnet: Unable to connect to remote host: Connection refused 

和泊塢窗PS的外面是:

[email protected]:~# docker ps 
CONTAINER ID  IMAGE         COMMAND     CREATED    STATUS    PORTS     NAMES 
dc758771ce15  exampleapp-dns:latest      "exampleapp-start"   21 minutes ago  Up 21 minutes  0.0.0.0:53->53/udp  exampleapp-dns 

什麼問題?

回答

2

已解決。我需要添加--dns=127.0.0.1運行容器強制解析配置。