I'm trying to figure out if it would be possible to assign a docker container a dedicated ip on my DHCP subnet.
I know I can bridge it but I have router rule base routing that I need to apply to the docker container so need it to have a lan ip. I would rather not waste a dedicated nas port to use a host ip for this.
I hope this makes sense.
[Help] assign docker dedicated DHCP ip
Re: [Help] assign docker dedicated DHCP ip
You can create a macvlan network and then specify the network and IP when starting the container. Docker cannot automatically obtain an IP from the DHCP server (router) directly, so you need to manually specify an IP and exclude this IP from the router's address pool.
To contact our team, please send email to following addresses, remember to replace (at) with @
Technical team: support(at)terra-master.com(for technical support)
Service team: service(at)terra-master.com(for purchasing, return, replacement, RMA service)
Technical team: support(at)terra-master.com(for technical support)
Service team: service(at)terra-master.com(for purchasing, return, replacement, RMA service)
Re: [Help] assign docker dedicated DHCP ip
Perfect that will work!

