Hey, I got a quite weird problem with a docker container on a droplet.
The container runs a webserver with php. When I want to get a file via http (by the public url, not by “localhost”) I always run into timeouts.
wget http://dogvers.flarandr.de/wp-json/ens/v1/zipcity/12163 never returns something. When I retreave the URL inside my Browser its works fine. The DNS resolution also seems to woks perfectly.
I Also tried to establish a telnet connection to port 80. It works from outside, but not from inside the container.
traceroute (from inside the container) returns the following:
traceroute to 220.127.116.11 (18.104.22.168), 30 hops max, 60 byte packets 1 * * * 2 * * * 3 * * * 4 * * * 5 * * * 6 * * * 7 * * * 8 * * * 9 * * * 10 * * * [... and so on]
So its not very helpful.
I use the exact same image on another machine (not digitalocean) an there it works.
Do you have any ideas to fix this?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $200 of credit to try our products over 60 days!
I’ve just tested this and I was able to run the
wgetcommand from my Droplet.
Are you running the command on the same Droplet that the container is running on?
If this is the case, it sounds like that you might have a firewall which is blocking the outgoing TCP connections on port 80. Can you verify if this is the case? If this is the case, you would just need to open port 80 for outgoing TCP connections for that Droplet and it should work as expected.
Let me know how it goes!