% DHCP-SERVER(1) Container Image Pages % Dominika Hodovska % March 23, 2017
dhcp-server - ISC DHCP server
DHCP (Dynamic Host Configuration Protocol) is a protocol which allows individual devices on an IP network to get their own network configuration information (IP address, subnetmask, broadcast address, etc.) from a DHCP server. The overall purpose of DHCP is to make it easier to administer a large network.
To get the dhcp-server container image on your local system, run the following:
docker pull docker.io/dhodovsk/dhcp-server
Container has to have access to host network (--net=host option while docker run). Reason for this is need to share one UDP port with other services and raw socket issue (more info here)
Location of DHCP configuration file (/etc/dhcp/dhcpd.conf). This file contains network information for clients and needs to exist before container run:
-v /etc/dhcp:/etc/dhcp
Client leases database:
-v /var/lib/dhcpd:/var/lib/dhcpd