Pi-hole setup in docker

I need pi-hole setup in docker but I am having trouble setting up a macvlan
I need the container to have its own IP address as port 53 is in use on the host system

the below setup is not working
sudo docker network create -d macvlan --subnet=10.42.0.0/24 --gateway=10.42.0.1 -o parent=eth0 pub_net

But is this not working because the host is the gateway
and how would I get around that

I use docker compose and this is my network configuration:

networks:
  pihole_network:
    driver: macvlan
    driver_opts:
      parent: eth0
    ipam:
      config:
        - subnet: 192.168.10.0/24            # <-- Update
          gateway: 192.168.10.252              # <-- Update
          ip_range: 192.168.10.201/32        # <-- Update

I think my issue is the fact the host is the gateway
how would I allow host to container connection

I think this might help:

I think I got it working using that

the only thing is nothing is being blocked after restoring a backup