A DHCP server on docker that utilizes ipvlan network driver to expose the service
- Build the dhcpd image using:
docker build . -t dhcpd:latest
- Create a docker network using with ipvlan driver:
docker network create -d ipvlan --subnet <your_subnet> --gateway <your_gateway> -o parent=<your_parent_interface> ipvlan0
- set your static
ipv4_address
on docker-compose.yaml - run:
docker compose up -d
Your dhcp continaer should be visible by the ip address you set on docker-compose file