Simple to the bone isc-dhcp-server on ubuntu:latest
Automatic restart (also on-boot), binding dhcpd.conf and dhcpd.leases from host, dhcpd listening on eno1 only:
docker run -d -v /var/lib/dhcp:/var/lib/dhcp -v /etc/dhcp/dhcpd.conf:/etc/dhcp/dhcpd.conf --net=host --name=dhcp --restart=always sirferdek/isc-dhcp-server eno1
(see also run script)
You must provide dhcpd.conf, which will reside on volume binded to container. If you don't have template dhcpd.conf, you can find one in this repo.
Nothing spectacular...
docker logs dhcp
Container does not respond to [CTRL]+[C]...
Content type
Image
Digest
Size
31 MB
Last updated
about 5 years ago
docker pull sirferdek/isc-dhcp-server