I'd like to assign a static IP to a docker container
and have it work like a virtual machine on the host network.
Example:
Network of 10.10.10.0/24
Physical host running Docker IP: 10.10.10.1
Docker container IP: 10.10.10.2
Now obviously that's rather easy as long as I have a separate NIC for the container - otherwise there's problems with ARP. I have read up on macvlan
networks and they seem to be a way to resolve this:
https://docs.docker.com/network/macvlan/
However, it says clearly says that:
In this case, you need to designate a physical interface on your Docker host to use for the Macvlan, as well as the subnet and gateway of the Macvlan.
Can this physical interface still carry a "normal" IP address so it can communicate with other physical hosts on the network?