Since you are using the same curl command with the same IP address on the host and if ping works, all that remains is a firewall that blocks UDP/TCP packages while ping is ICMP which could be blocked too but not always is. Locally it wouldnât matter if you can ping a private IP address but you sometimes you donât want a container to access anything on the host. That is not a default setting at least not in Docker so something else must have blocked the request. Here is an article (and video) in which I share some thoughts about Docker networks and how you can debug it.