Hi,
I’m trying to connect to the internet in my container, which fails. Using Windows 7 and DockerToolbox-1.8.2c. I can ping 8.8.8.8 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
"search xwlan
nameserver 212.x.x.x
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 8.8.8.8 --dns 212.18.0.5 --dns 212.18.3.5” - behaviour does not change
I have started a fresh debian, installed dnsutils and executed “dig google.com @8.8.8.8” which returned
"
; <<>> DiG 9.9.5-3ubuntu0.5-Ubuntu <<>> google.com @8.8.8.8
;; 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
Acquire::http::Proxy “http://x.x.x.x:yyyy”;
EOF”
I’m out of ideas. Can someone point me in the right direction please?