I want to be able to do that with docker containers as well, i.e., assign docker containers an IP from DHCP in the hosts network. Of course, I then configure my DHCP to always assign the same IPs to my servers, based on the MAC-Adresses, but that way I can easily move a server from a testing network to my "live"-network, just by changing the IP assignment in the DHCP server. However, I try to use a minimum of manual IPs in my network, and instead try to have my DHCP server assign almost all IPs, even for other servers. My host system is running debian "bullseye".įrom the docker documentation, it seems natural to use a macvlan network in bridge mode, and the default way is working correctly for me. I am running several services in docker containers for my homelab, and I need them to be accessible from their own distinct IPs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |