May 23, 20206 yr Hi, I was tired of not being able to access some dockers from other dockers and from VMs on the same interface. I read that I had to have the dockers in bridge mode or on a VLAN. So yesterday I setup 4 vlans. To verify that it worked I created a VM on vlan br0.2 and it worked, I got dhcp for that network (from the router) and could access unraid etc. So now I tried to install pihole and I put it on the interface br0.2, but no matter what I try I can't access the pihole web interface. I also installed a wordpress docker and put it on br0.2, but I couldn't access that either. Can someone please help me with the right configuration regarding vlans and the pihole docker to be able get it to work? I use Custom network: br0.2 Fixed IP: 192.168.2.2 Then we have key 5 and 6. i have tried leaving them as they are, deleting them, and put the same config as the custom network and fixed ip
May 26, 20206 yr What are you trying to accomplish exactly, docker containers on the default bridge are able to locate each other on IP details. If you want to have them be able to reach each other by name, then you have to use a custom network. Ref to Docker Docs Now for pihole, I've put mine on the custom: br0 bridge and gave it an IP in my own segment, since this allows my to use port 80 of the host and still have pihole available on that same port. No VLAN was required at all for this. Note that I do use VLANs, but that's mainly to be able to reach the host from a docker container. I've created a macvlan driver network on that VLAN, without giving the host an IP in that same VLAN, this allows me to reach the unRAID host on its usual address from the newly created network. Edited May 26, 20206 yr by S1dney
Archived
This topic is now archived and is closed to further replies.