Skip to content

Instantly share code, notes, and snippets.

View ppmetz's full-sized avatar

Peter Metz ppmetz

  • South Germany
View GitHub Profile
@ppmetz
ppmetz / docker-dhcpd.md
Created November 19, 2025 08:52 — forked from mikejoh/docker-dhcpd.md
Short guide on how to set up a Docker container as a DHCP server

Setting up a Docker container as a DHCP server

In this guide I’ve tested a number of different commands and configurations using Docker to run a container with dhcpd (+macvlan driver) to serve my clients in my home network. In the end i’ll migrate from my Windows 2012 R2 Server running DHCP to a much more lightweight Docker container (7.42 MB in total). Wow.

My home environment:

  • Firewall (Juniper)
    • I’m running IP helper for bootp which in this case means that i relay DHCP requests from various VLANs into one where i've placed my Windows 2012 R2 server. This is also where my container will live. See the FW configuration below: