I have a container on my server. Up until yesterday, everything was working okay, then someone deleted docker routes on the host.
Application is running inside the container and listening on 0.0.0.0:5000, it is exposed on 5001 . Running curl -v localhost:5001
gives out
* Rebuilt URL to: localhost:5001/
* Trying ::1...
* Connected to localhost (::1) port 5001 (#0)
> GET / HTTP/1.1
> Host: localhost:5001
> User-Agent: curl/7.47.0
> Accept: */*
>
* Recv failure: Connection reset by peer
* Closing connection 0
curl: (56) Recv failure: Connection reset by peer
I have tried restarting the daemon, recreated the container, created and attached a new bridge network to the container but nothing has worked.
However, I tried launching the container with host driver and I could reach it. I do not want to use host network, I need to make it work with bridge network.