Docker¶
The image git.lantea.one/lantea-one/ninlil runs the same single program as the other
installations: the DNS and DHCP engines, the REST API and the admin console in one process.
What the image is¶
- Small attack surface. The base image is the chiseled .NET runtime-deps image: no shell and no
package manager. It holds the libraries a self-contained .NET program needs, plus
libmsquicfor DNS-over-QUIC and its dependencylibnuma1. - Non-root. The server runs as user ID
1654. The application files are read-only to it. Only/app/datais writable. - One volume.
/app/dataholds the database (with the default SQLite engine), the Data Protection key ring, the JWT signing key, the certificates and theappsettings.jsonthat the console's settings pages write to. - Platforms.
linux/amd64andlinux/arm64.
| Tag | What it is |
|---|---|
latest |
The newest release |
<yyyy>.<mm>.<dd>.<increment> |
A specific release, for example 2026.09.24.1 |
<yyyy>.<mm>.<dd>.<increment>-<branch>-<short-sha> |
A pre-release build, removed after 24 hours |
Run it¶
Before you start¶
-
Docker installed. Check it:
docker --version -
Port 53 free on the host. On a Linux desktop
systemd-resolvedusually holds it for its stub listener, so publishing53:53fails withaddress already in use. Publish another host port (-p 5353:53/udp -p 5353:53/tcp) or turn the stub listener off.
Steps¶
-
Start the container. Always mount a volume at
/app/data: without it, every encrypted secret becomes unreadable when you replace the container.docker run -d --name ninlil \ -p 80:80 -p 443:443 -p 53:53/udp -p 53:53/tcp \ -v ninlil-data:/app/data \ git.lantea.one/lantea-one/ninlil:latest -
Read the one-time bootstrap administrator password:
docker logs ninlil -
Open
https://<host>/and sign in asadmin. The browser warns about the self-signed certificate that Ninlil generated on the first start.
Only plain DNS (53) and the web port (80 and 443) are published above. Every other transport and
both DHCP protocols are off by default. Publish their ports after you turn them on (see
Ports). To set a variable, add -e NAME=value. Variable names are in the
environment variables. A .NET runtime setting uses the same
scheme: -e NINLIL_DOTNET_GC_SERVER=1 selects server garbage collection.
Check that it worked¶
docker logs ninlil
curl http://localhost/status
The log ends with Now listening on: http://[::]:80, Now listening on: https://[::]:443 and
Application started.. The status call prints:
{"status":"Healthy","components":null}
To remove the test container and its data, run docker rm -f ninlil and
docker volume rm ninlil-data.
DHCP and Router Advertisement¶
A DHCP and Router Advertisement server has to see raw broadcast and multicast traffic from the LAN, which Docker's bridge network does not forward. Run the container on the host's network, as root:
docker run -d --name ninlil --network host \
--user 0:0 \
-e NINLIL_DHCP_SERVER_PROTOCOL_DHCPV4_ENABLE=true \
-v ninlil-data:/app/data \
git.lantea.one/lantea-one/ninlil:latest
This container runs as root and shares the host's network namespace, so it sees every interface of
the host and its listeners bind the host's ports directly, with no Docker port mapping in between.
Use it only on a host you trust with that. Files it writes to the volume are root-owned: the
non-root container (user 1654) cannot write them until you hand the volume back with chown.
DHCP and Router Advertisement need two capabilities: NET_RAW (the Router Advertisement socket)
and NET_BIND_SERVICE (ports 67 and 547). Docker gives both to a container by default, so the
command adds none. If you start the container with --cap-drop ALL, add
--cap-add NET_RAW --cap-add NET_BIND_SERVICE back. Without NET_RAW the Router Advertisement
service logs could not bind its socket: Permission denied and the other services keep running.
A fuller example: Compose¶
docker-compose.yml
at the repository root runs Ninlil against PostgreSQL instead of SQLite, with named volumes. Its
ninlil-host-network service, behind the host-network profile, shows the DHCP setup. Every
password in it is a placeholder: change them before you use it for anything but a local trial.
docker compose up --build
docker compose --profile host-network up --build ninlil-host-network postgres
The first command starts DNS, the API and the console. The second adds DHCP and Router Advertisement.
Build the image yourself¶
The image only copies prebuilt ninlil-linux-<arch> executables, so build those first. The README
lists the steps and the Docker Engine and buildx versions it needs under
Building the image yourself.