A container running ISC DHCP Server.
Image hosted at: ghcr.io/jchonig/dhcpd
docker create \
--name=dhcpd \
-e TZ=Europe/London \
-i DHCP_IF=eth0 \
--net host \
--ports 69/udp \
--restart unless-stopped \
-v ./config:/config \
-v ./data:/data \
ghcr.io/jchonig/dhcpd
Compatible with docker-compose v2 schemas.
---
version: "2"
services:
monit:
image: ghcr.io/jchonig/dhcpd
container_name: dhcpd
environment:
- TZ=Europe/London
- DHCP_IF=eth0
volumes:
- </path/to/appdata/config>:/config
- dhcpd_data:/data
network_mode: host
ports:
- 69
restart: unless-stopped
...
volumes:
dhcpd_data
| Port | Function |
|---|---|
| 69/udp | DHCPD port |
| 547/udp | DHCPv6 port |
| 647/tcp | DHCPD failover port |
| Env | Function |
|---|---|
| PUID=1000 | for UserID |
| PGID=1000 | for GroupID |
| TZ=UTC | Specify a timezone to use, e.g. UTC |
| DHCP_IF= | Default interface for isc-dhcp-server |
| DHCP_V6= | Set to true to run DHCPv6 instead of DHCPv4 |
| Volume | Function |
|---|---|
| /config | All the config files reside here |
| /data | Persistent volume containing the leases file |
env in
the config directory. This file is sourced by the shell.Content type
Image
Digest
sha256:ce32f0202…
Size
71 MB
Last updated
1 day ago
docker pull jchonig/dhcpd