How to set static IP for dockers


Recommended Posts

Hi,

 

I'm trying to get PiHole running as per Spaceinvader One's video but in network type, I don't have the option to set a static IP I only get the bridge and host options. I've tried searching the forums and making a couple of the changes that I have seen in other threads but the solution still escapes me. I'm sure it's something simple that I am just completely missing.

 

Thanks in advance :)

network settings.png

Link to comment

You need to change the "network type" of the container to a custom network (Custom: br0 in your case).

image.thumb.png.f90a1215d121382f6ef36dfbbe13bc84.png

You can set both an IPv4 and IPv6 address (if used) as fixed address for Pihole.

 

In addition: under Docker settings you need to enable br0 as custom network

Edited by bonienl
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.