I’m trying to connect to the internet in my container, which fails. Using Windows 7 and DockerToolbox-1.8.2c. I can ping 18.104.22.168 successfully. But I can’t ping google.com or ping its IP address.
The often suggested command “sysctl net.ipv4.ip_forward” returns “net.ipv4.ip_forward = 1”, both in the container and in the virtual machine.
“cat /etc/resolv.conf” in the container returns
nameserver 212.x.x.x" - nameservers are from my pc and xwlan is a dns connection suffix from my pc
I have tried starting the container with “–dns 22.214.171.124 --dns 126.96.36.199 --dns 188.8.131.52” - behaviour does not change
I have started a fresh debian, installed dnsutils and executed “dig google.com @184.108.40.206” which returned
; <<>> DiG 9.9.5-3ubuntu0.5-Ubuntu <<>> google.com @220.127.116.11
;; global options: +cmd
;; connection timed out; no servers could be reached"
When I set http_proxy & https_proxy within the container I can execute “wget google.de”, although I have set them as ENV command in the DockerFile.
Additional note: I’m using a proxy. In order to install with apt-get, i have to set a proxy with this:
“cat << EOF >> /etc/apt/apt.conf.d/01proxy
I’m out of ideas. Can someone point me in the right direction please?