[Help] assign docker dedicated DHCP ip

Discussion on apps, protocols, APIs, specifications, and more. You are welcome to join us as a TOS app developer!
Post Reply
User avatar
samw5
Posts: 10
Joined: 28 Nov 2025, 00:21
United States of America

[Help] assign docker dedicated DHCP ip

Post by samw5 »

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.
User avatar
CursaYang
TM Support
Posts: 740
Joined: 06 Jan 2025, 16:34
China

Re: [Help] assign docker dedicated DHCP ip

Post by CursaYang »

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)
User avatar
samw5
Posts: 10
Joined: 28 Nov 2025, 00:21
United States of America

Re: [Help] assign docker dedicated DHCP ip

Post by samw5 »

Perfect that will work!
Post Reply

Return to “Developer Discussion Room”