Public | Automated Build

Last pushed: 10 months ago
Short Description
ISC DHCP server
Full Description

DHCP Server Container


DHCP (Dynamic Host Configuration Protocol) server provides network configuration for dhcp-clients.

Running in docker

Clone this repository somewhere and build the container:

# docker build -t <username>/dhcpd .

Configure dhcp-server in /etc/dhcp/dhcpd.conf (dhcp-server configuration)
and run dhcpd container as root.

# docker run --net=host -v /etc/dhcp/:/etc/dhcp -v /var/lib/dhcpd:/var/lib/dhcpd --name dhcp <username>/dhcpd

Functionality check

If you want to test the functionality, you can do it using dummy interface:

# modprobe dummy
# ip address add dev dummy0
# ip link set dev dummy0 up

Add configuration for dummy interface to dhcpd-conf:

subnet netmask {

Use either pre-installed dhcp-client on your host:

    # /usr/sbin/dhclient -d dummy0

Or use dhcp-client container.

Docker Pull Command
Source Repository