When using the ''docker run" command to launch containers, the default behavior is to create a separate L2 network (subnet) on the docker0 bridge. dockerd will update the NAT table so that traffic from a container on this L2 network to the outside will get NATed.
In my experimental setup, I want the containers to connect to the same physical L2 network the host is connected to so they can DHCP an IP address. I know this can be done with the macvlan driver, but I also want to do this while having the containers connected to a linux bridge. The bridge itself will be created and configured by me using the brctl. I’m able to achieve this setup with LXD, it’s not clear to me how to do it with docker.