Hi all,
I am doing a Udemy course and learning about Docker networking, now in the quiz there was a question asking what network would you use if you wanted containers to talk to each other on the same host.
The answer was Bridge, but I have questions around this and hope someone can shed some light on this.
I would of thought the answer would of been to create a new network that then allows DNS as the bridge network does not have DNS by default and if you wanted containers to ping each other etc you would need to via a link if you use the bridge network. Anything else like communicating directly via IP’s is an anti-pattern
So am I right in the answer should of been create a new network to be able to communicate via DNS?
Thanks!