DHCP in a container, based on dnsmasq.
Adjust the dnsmasq.conf according to your needs and run one of the following methods.
docker run --cap_add=NET_ADMIN -p <bindip>:67:67/udp -p <bindip>:67:67/tcp -v $PWD/containerdata:/container tillhoff/dhcp
--cap_add=NET_ADMIN required to use port 67-p <bindip>:67:67/[udp|tcp] forward port 67 with both protocols to containerversion: '3.8'
services:
dns:
image: tillhoff/dhcp
capabilites:
add: ["NET_ADMIN"]
ports:
- "<bindip>:67:67/udp"
- "<bindip>:67:67/tcp"
volumes:
- "$PWD/containerdata:/container"
Content type
Image
Digest
Size
66.2 MB
Last updated
over 5 years ago
docker pull tillhoff/dhcp