Docker Community Forums

Share and learn in the Docker community.

Docker networking, binding interfaces

I have a hard time understanding docker networking and how it interact with NIC’s (Network Interfaces).

So my question is:

  1. Is it possible to state witch network interface that should be connected with which docker network.

  2. When using network_mode: host, can that be connected with a specific network interface?

And can it be done in docker-compose?

Linux, Raspberry Pi OS Lite, Release date: May 7th 2021

SOLVED :smile:

I feel a bit stupid. As a network engineer I thought that macvlan was VLAN and I disregarded it as I don’t use VLAN in LAN.

And now I have read and discovered that the name macvlan is a bit misleading for a network engineer, but its the solution to my question…