Docker Community Forums

Share and learn in the Docker community.

Custom IP address for container (pihole)

Hello,
I have a NAS(openmediavault) that has more services. One of them is a pihole and I would need to move it to a different IP address than the base address of the server. This is because DNS port 53 at the main server IP address is already occupied. Example:
IP address of the main server and other services: 192.168.1.10
IP address of the pihole: 192.168.1.15
I know it should be solved via macvlan. I tried:

docker network create -d macvlan \
   --subnet = 192.168.1.0 / 24 \
   --gateway = 192.168.1.1 \
   -o parent = eth0 pihole

The address of my router is 192.168.1.1.
I then assigned the container to this network and changed the IP address of the container with the pihole to 192.168.1.15. I also made a change in the pihole settings.

Unfortunately, I was not successful. I am a beginner with docker, so I will ask for simple advice / solutions.
Thanks…
2020-04-28_19-30-08|303x500, 50%

Resolved here: https://discourse.pi-hole.net/t/custom-ip-address-for-pihole/31264/4.