Hardened rootless DuckDNS dynamic DNS updater on Debian 13 (multi-arch, signed, 0 fixable CVEs).
640
A minimal, rootless, read-only-rootfs-compatible DuckDNS dynamic DNS updater container built on Debian 13 (trixie-slim), maintained by Daniel G. Cosenza from FNX Labs.
dgcosenza/duckdnsghcr.io/dgcosenza/duckdns (identical signed multi-arch digest)dgcosenza/duckdns-dockerdgcosenza/duckdns is a drop-in, hardened replacement for lscr.io/linuxserver/duckdns without s6-overlay overhead or root privileges. It updates one or more DuckDNS subdomains over HTTPS on a configurable interval, passes credentials exclusively through curl's stdin config (never exposing tokens in /proc/<pid>/cmdline or container logs), supports Docker secrets (TOKEN_FILE / /run/secrets/duckdns_token), runs strictly as non-root UID/GID 1000:1000 with cap_drop: [ALL] and read_only: true, and exposes a real liveness + last-update HEALTHCHECK.
| Component | Resolved Version |
|---|---|
| DuckDNS updater | 1.0.0 |
| Base OS | Debian 13.8 (trixie-slim) |
| Architectures | linux/amd64, linux/arm64 |
| Uncompressed size (per arch) | amd64: 37.6 MB, arm64: 121.7 MB |
| Last verified build (UTC) | 2026-11-28 |
| Published multi-arch digest | dgcosenza/duckdns@sha256:a74a01a18453545f6746e795f449e618a25727e9bb0cfa16b465b0ef84928f28 |
| GHCR mirror | ghcr.io/dgcosenza/duckdns@sha256:a74a01a18453545f6746e795f449e618a25727e9bb0cfa16b465b0ef84928f28 |
| Supply chain | Cosign OIDC signed + SPDX & CycloneDX SBOM attestations + SLSA Build L3 provenance |
| Security gate (Trivy + Grype on SBOM) | 0 fixable findings of any severity (15 upstream-unfixed) |
| Tag | Policy | Description |
|---|---|---|
latest | Moving | Latest verified multi-arch build passing all CVE, Dive, and smoke gates. |
<version> (e.g. 1.0.0) | Moving | Latest verified build for that updater release. |
<version>-<YYYYMMDD> | Immutable | Date-stamped daily security rebuild. |
sha-<short> | Immutable | Git commit tag from this repository. |
Pin production deployments by immutable digest: dgcosenza/duckdns@sha256:<digest> or ghcr.io/dgcosenza/duckdns@sha256:<digest>.
| Architecture | Status | Verification |
|---|---|---|
linux/amd64 | Published & natively tested | Native x86_64 build, smoke test, Dive >= 95%, Trivy + Grype 0 fixable CVEs, Cosign OIDC, SLSA L3. |
linux/arm64 | Published & natively tested | Native ARM64 build, smoke test, Dive >= 95%, Trivy + Grype 0 fixable CVEs, Cosign OIDC, SLSA L3. |
Volume ownership note:
docker-compose.example.ymldefaults to a named Docker volume so non-root runtime permissions (1000:1000) are initialized automatically; if switching to a host bind mount, pre-create the directory owned by1000:1000(mkdir -p ./data && chown 1000:1000 ./data) beforedocker compose up -d.
mkdir -p ./secrets ./config
printf '%s\n' '<your-duckdns-token>' > ./secrets/duckdns_token.txt
chmod 600 ./secrets/duckdns_token.txt
docker run -d --name duckdns --restart unless-stopped \
--read-only --tmpfs /tmp --cap-drop ALL --security-opt no-new-privileges:true \
-v "$(pwd)/secrets/duckdns_token.txt:/run/secrets/duckdns_token:ro" \
-v "$(pwd)/config:/config" \
-e SUBDOMAINS="example-subdomain" \
-e INTERVAL="300" \
dgcosenza/duckdns:latest
See docker-compose.example.yml:
services:
duckdns:
image: dgcosenza/duckdns:latest
container_name: duckdns
restart: unless-stopped
read_only: true
cap_drop: [ALL]
security_opt: ["no-new-privileges:true"]
tmpfs: ["/tmp"]
environment:
TZ: "Etc/UTC"
SUBDOMAINS: "example-subdomain"
TOKEN_FILE: "/run/secrets/duckdns_token"
UPDATE_IP: "ipv4"
INTERVAL: "300"
LOG_FILE: "false"
secrets: [duckdns_token]
volumes: ["./config:/config"]
secrets:
duckdns_token:
file: ./secrets/duckdns_token.txt
| Variable | Default | Description |
|---|---|---|
SUBDOMAINS | (required) | Comma-separated DuckDNS subdomains (without .duckdns.org). |
TOKEN | (empty) | DuckDNS API token (prefer TOKEN_FILE or /run/secrets/duckdns_token). |
TOKEN_FILE | (empty) | Path to secret file containing the DuckDNS token. |
UPDATE_IP | ipv4 | IP family to update: ipv4, ipv6, or both. |
INTERVAL | 300 | Update interval in seconds (>= 10). |
LOG_FILE | false | Set to true to also append timestamped logs to /config/duck.log. |
TZ | Etc/UTC | Container timezone. |
Ports: None (outbound HTTPS 443/tcp only). Volumes: /config (optional log storage, owned by 1000:1000). User: duckdns (UID/GID 1000:1000). PID 1: tini.
HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \
CMD ["/usr/local/bin/duckdns-healthcheck"]
Verifies the updater process PID is alive and that /tmp/duckdns.state recorded status=OK within 2 * INTERVAL + 60 seconds. Verified on both amd64 and arm64 in CI; do not disable in Compose.
linuxserver/duckdnsdgcosenza/duckdns@sha256:<digest>.SUBDOMAINS, UPDATE_IP, LOG_FILE, and /config (owned by 1000:1000); move TOKEN to a Docker secret (TOKEN_FILE=/run/secrets/duckdns_token).read_only: true, tmpfs: [/tmp], and cap_drop: [ALL].cosign verify \
--certificate-identity-regexp="^https://github\.com/dgcosenza/duckdns-docker/\.github/workflows/daily\.yml@refs/heads/main$" \
--certificate-oidc-issuer="https://token.actions.githubusercontent.com" \
ghcr.io/dgcosenza/duckdns:latest
gh attestation verify oci://ghcr.io/dgcosenza/duckdns:latest --owner dgcosenza
UNKNOWN–CRITICAL, --ignore-unfixed, exit 1) and Grype on the Syft SPDX SBOM (--only-fixed --fail-on negligible) on both amd64 and arm64.curl -K - stdin and never appear in process arguments or logs.1000:1000 with cap_drop: [ALL] and read_only: true.SECURITY.md.docker buildx build --platform linux/amd64 --load -t dgcosenza/duckdns:local .
./tests/smoke.sh dgcosenza/duckdns:local
.github/workflows/daily.yml runs daily at 05:11 UTC with --no-cache: refreshes the debian:13.8-slim digest and OS security patches, runs smoke + Dive + Trivy + Grype gates on amd64 and arm64, publishes identical Cosign-signed SLSA L3 digests to Docker Hub and GHCR (plus optional Quay.io, GitLab, Codeberg, and Amazon ECR Public mirrors when configured), creates a signed GitHub Release, syncs docs & Docker Hub overview, and manages a single ci-failure issue.
curl + bash + tini on debian:13.8-slim: Avoids cron daemons, root privileges, and s6-overlay layers for a minimal attack surface and Dive efficiency >= 95%.curl config: Prevents API tokens from leaking to ps / /proc.Packaging, scripts, workflows, and documentation (packaging: MIT, upstream: MIT) are licensed under the MIT License — copyright Daniel G. Cosenza from FNX Labs. Third-party OS package notices: THIRD-PARTY-NOTICES.md.
Maintained by Daniel G. Cosenza from FNX Labs. Compatible with the DuckDNS API.
Content type
Image
Digest
sha256:a74a01a18…
Size
35.8 MB
Last updated
about 9 hours ago
docker pull dgcosenza/duckdns