I have a docker-compose file w/o any network configuration. My understanding is this creates a default bridge network. From within this network I can run:
$ ping www.google.com
And it works just fine. But if I try:
$ curl https://www.google.com
It hangs. If I set network_mode to host then it works, but I can no longer reach other containers in the network. I would prefer to use the default bridge network created but at the moment I'm just trying to do some testing and this isn't for production use. How can I allow access to the internet and access to other containers on the network?
Worked fine on another machine so I rebooted and it worked. I hate when that happens
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With