DHCP-leased IPs for Docker containers (bridge/macvlan/ipvlan). Fork of devplayer0/docker-net-dhcp.
2.7K
Docker network plugin that gets each container's IP from your existing
LAN DHCP server (e.g. your router) instead of from a Docker-managed
pool. Containers appear on the LAN like any other host.
This is a maintained fork of
devplayer0/docker-net-dhcp.
All credit for the original design and bridge-mode plumbing goes to the
upstream author. The upstream has been quiet since 2021 and no longer
builds on current Docker; this fork carries the work forward.
docker plugin install claymore666/net-dhcp:latest
Also published on GHCR as ghcr.io/claymore666/docker-net-dhcp:latest.
mode=macvlan — attaches directly to a parent NIC, no host bridge required.mode=ipvlan — for switches that reject macvlan's per-child MACs.docker restart and systemctl restart docker--driver-opt ip=192.168.X.Y per endpoint.go test -race.Bridge mode (drop-in upstream-compatible):
docker network create -d claymore666/net-dhcp:latest \
--ipam-driver null -o bridge=my-bridge my-dhcp-net
Macvlan mode (no host bridge needed):
docker network create -d claymore666/net-dhcp:latest \
--ipam-driver null -o mode=macvlan -o parent=eth0 lan-dhcp
In compose:
services:
app:
image: nginx
networks: [lan-dhcp]
networks:
lan-dhcp:
external: true
GPL-3.0, matching upstream. All upstream copyright notices preserved.
Content type
Plugin
Digest
sha256:f3393c611…
Size
13.5 MB
Last updated
2 days ago
docker plugin install claymore666/net-dhcp