Docker network_mode: host - Why? #2734
-
Could someone explain WHY this parameter is required? My docker compose config requires a network being setup with some network specific params, which I cant apply with the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
because ports are dynamically opened/used and we rely on things like multicast for discovery. In any case, the MA container needs full L2 access to the network |
Beta Was this translation helpful? Give feedback.
-
Thanks, I'll keep at it then with a |
Beta Was this translation helpful? Give feedback.
because ports are dynamically opened/used and we rely on things like multicast for discovery.
There is an alternative to using host networking (which is even better imo) which is using a bridge/macvlan network.
In any case, the MA container needs full L2 access to the network