Cannot curl a local webserver on host from inside container

If you need the default gateway IP, then yes, you don’t need to inspect the network, but I was wrong when I wrote in my original post that it would give you the gateway of the network which is used by the container.

If you want to read about it in more details, I actually have an older post from the time when I still knew what I was talking about, right after testing it :slight_smile:

Interestingly, it completely disappeared from the documentation and this keyword can be found only in the source code and some release notes…

1 Like