Dns.GetHostAddressesAsync: Resource temporarily unavailable Dns.GetHostAddressesAsync: Resource temporarily unavailable docker docker

Dns.GetHostAddressesAsync: Resource temporarily unavailable


After two weeks of research, I finally stumbled upon a solution for this:

The problem is related to the network, that was obvious, but it's precisely about how containers are isolated from one another. Problem is, the container has no outbound connection. A solution that work inside a standalone container is to use the --network host parameter, which would expose the host network to the container. Note that using this would remove the port mapping from the container since the container's port 5000 is now linked to the host's port 5000

Hope this solution can help others