I'm using Docker 18.06.1-ce on Ubuntu 16, and I have a container exposing 8012 port. When I do
curl "http://localhost:8012/"
I get response
Error: Requested URL / not found
But when VPN is up (openfortivpn) after long time waiting I get
curl: (56) Recv failure: Connection reset by peer
When I mess my port number, I instantly get error:
curl "http://localhost:8011/"
curl: (7) Failed to connect to localhost port 8011: Connection refused
How to debug and fix this? Obviously localhost pings, and traceroute to it is one hop.
Advice from here helped, I just added
to my
docker-compose.yml
. The question on how to debug this remains open.