Sign in

duckdns

8d26a150-ls8

Duckdns is a free service which will point a DNS (sub domains of duckdns.org) to an IP of your choice. The service is completely free, and doesn't require reactivation or forum posts to maintain its existence.

docker pull ghcr.io/linuxserver-playground/duckdns:latest

Quick start · configure#

Pick the optional settings and mods you want, set your paths, ports and values, then copy the result.

Image
Identity

The user the application runs as and its timezone.

Required
multiple subdomains allowed, comma separated, no spaces, if your domain is user.duckdns.org you put user, not a sub-subdomain
DuckDNS token
Optional settings5

Tick what you need; it is added to every output with its value.

Mods

0 for duckdns, 0 universal mods suggested for it, and 13 other universal mods. Ticked mods join one DOCKER_MODS value in the order you tick them.

---
services:
  duckdns:
    image: ghcr.io/linuxserver-playground/duckdns:latest
    container_name: duckdns
    environment:
      - SUBDOMAINS=subdomain1,subdomain2
      - TOKEN=token
    restart: unless-stopped

Required settings only. Tick optional settings and mods to add them.

  • Values flagged as secrets are masked here and left out of the shareable link.

Install on …

Adding a store to your platform

Version tags#

TagLatest buildBuiltTests
:latestStable releasesbranch master · stable8d26a150-ls8amd64 · arm64 passed

Architectures#

Pulling :latest picks the right one for your host automatically.

  • x86_64amd64-latest
  • arm64arm64v8-latest

Inside the latest image#

ghcr.io/linuxserver-playground/duckdns:8d26a150-ls8

Explore this build
Base image
ghcr.io/linuxserver-playground/baseimage-alpine:3.24
Upstream version
8d26a150
amd64 compressed
14.9 MB · 9 layers
arm64 compressed
16.0 MB · 9 layers
amd64 packages
67 · Alpine Linux v3.24
arm64 packages
67 · Alpine Linux v3.24
Tests
passed
Built
Reason
weekly package check

In the fleet#

Live branches, their latest release, upstream version and next scheduled check.

duckdns on the fleet board

live branchesloading…

Branch → tagLast buildReleasedUpstreamDriftNext checkFlags
master → :latestsuccess
8d26a150
? unknown––

Application setup#

  • Go to the duckdns website, register your subdomain(s) and retrieve your token.
  • Create a container with your subdomain(s) and token. If you own user.duckdns.org, you set SUBDOMAINS=user. You would NOT set a sub subdomain like overseerr from overseerr.user.ducksdns.org.
  • It will update your IP with the DuckDNS service every 5 minutes (with a random jitter).

Parameters#

Environment variables#
VariableFunctionRequired
PUID=1000User IDoptional
PGID=1000Group IDoptional
TZ=Etc/UTCTimezoneoptional
SUBDOMAINS=subdomain1,subdomain2multiple subdomains allowed, comma separated, no spaces, if your domain is user.duckdns.org you put user, not a sub-subdomainrequired
TOKEN=tokenDuckDNS tokenrequired
UPDATE_IP=ipv4Set to ipv6 or ipv4 to update only your public IPv4/6 address. Set to both to update IPv6 and IPv4 address. This variable makes use of a third-party service. Omitting this variable uses DuckDNS for detection and only supports IPv4. both and ipv6 modes needs host networking.optional
LOG_FILE=falseSet to true to log to file (also need to map /config).optional
Volumes#
PathFunctionRequired
/configPersistent config files. Also set LOG_FILE=true to keep address history.optional
Other settings#
SettingFunctionRequired
network_mode: hostRuns on the host network.required

Notice regarding automatic detection#

Using the UPDATE_IP variable whatever its value (ipv4, ipv6 or both) uses external Cloudflare whoami service to detect public IP addresses. Be aware that using this variable will query a third-party service other than DuckDNS.

Omitting the UPDATE_IP variable uses DuckDNS for detection and only supports IPv4.

Read-Only Operation#

This image can be run with a read-only container filesystem. For details please read the docs.

Environment variables from files (Docker secrets)#

You can set any environment variable from a file by using a special prepend FILE__.

As an example:

-e FILE__MYVAR=/run/secrets/mysecretvariable

Will set the environment variable MYVAR based on the contents of the /run/secrets/mysecretvariable file.

Umask for running applications#

For all of our images we provide the ability to override the default umask settings for services started within the containers using the optional -e UMASK=022 setting. Keep in mind umask is not chmod it subtracts from permissions based on it’s value it does not add. Please read up here before asking for support.

User / Group Identifiers#

When using volumes (-v flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID and group PGID.

Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.

In this instance PUID=1000 and PGID=1000, to find yours use id your_user as below:

id your_user

Example output:

uid=1000(your_user) gid=1000(your_user) groups=1000(your_user)

You only need to set the PUID and PGID variables if you are mounting the /config folder

Updating Info#

Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (noted in the relevant readme.md), we do not recommend or support updating apps inside the container. Please consult the Application Setup section above to see if it is recommended for the image.

Below are the instructions for updating containers:

Via Docker Compose

  • Update images:

    • All images:

      docker-compose pull
    • Single image:

      docker-compose pull duckdns
  • Update containers:

    • All containers:

      docker-compose up -d
    • Single container:

      docker-compose up -d duckdns
  • You can also remove the old dangling images:

    docker image prune

Via Docker Run

  • Update the image:

    docker pull ghcr.io/linuxserver-playground/duckdns:latest
  • Stop the running container:

    docker stop duckdns
  • Delete the container:

    docker rm duckdns
  • Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your /config folder and settings will be preserved)

  • You can also remove the old dangling images:

    docker image prune

Image Update Notifications - Diun (Docker Image Update Notifier)

Tip

We recommend Diun for update notifications. Other tools that automatically update containers unattended are not recommended or supported.

Building locally#

If you want to make local modifications to these images for development purposes or just to customize the logic:

git clone https://github.com/linuxserver-playground/docker-duckdns.git
cd docker-duckdns
docker build \
  --no-cache \
  --pull \
  -t ghcr.io/linuxserver-playground/duckdns:latest .

The ARM variants can be built on x86_64 hardware and vice versa using ghcr.io/linuxserver/qemu-static

docker run --rm --privileged ghcr.io/linuxserver/qemu-static --reset

Once registered you can define the dockerfile to use with -f Dockerfile.aarch64.

Every push builds and tests the image with the shared workflow in linuxserver-playground/workflows; every build’s tests, screenshots and package changes are on the image’s builds on the website.

Builds#

The newest five builds per branch, each with its CI report; 3 older releases are on GitHub, listed below.

TagBuiltReasonChangeResultSize
8d26a150-ls8master · a7eda6b8weekly package checkmixedsuccess14.9 MB amd6416.0 MB arm64
361709d2-ls7master · 19e204f1weekly package checkmixedsuccess15.0 MB amd6416.1 MB arm64
0cf998fb-ls6master · 69c70a88weekly package checkupstreamsuccess15.0 MB amd6416.1 MB arm64
db74a9e2-ls5master · e58197dfweekly package checkupstreamsuccess15.0 MB amd6416.1 MB arm64
8b6013ad-ls4master · 26c0e9a2weekly package checkbasesuccess15.0 MB amd6416.1 MB arm64
Older releases3Release, run record and run on GitHub

Mods#

Add a mod with DOCKER_MODS=<image>; separate several with |.

All mods for duckdns

No mod targets duckdns specifically; the 13 universal mods work with every image.

Changelog#

  1. Rebase to Alpine 3.24.

  2. Rebase to Alpine 3.22.

  3. Rebase to Alpine 3.21.

  4. Rebase to Alpine 3.20.

  5. Bump CI_DELAY to 120 seconds as ARM builds were failing.

  6. Added IP address to logging output when IP changes.

  7. Rebase to Alpine 3.19.

  8. Rework shell script for case insensitivity and update readme to be more clear.

26 earlier entries
  1. Add support for public IPv6 address update using Cloudflare.
  2. Rebase to Alpine 3.18, deprecate armhf.
  3. Rework shell scripts and cron logic.
  4. Rebase to alpine 3.17.
  5. Rebase to alpine 3.16 and s6v3.
  6. Rebase to alpine 3.15.
  7. Don't allow insecure connections and add timeout.
  8. Add random jitter to update time.
  9. Append to log file instead of overwriting every time.
  10. Re-adjust cron timings to prevent peak times, update code formatting.
  11. Rebasing to alpine 3.13.
  12. Rebasing to alpine 3.12.
  13. Add donation links for DuckDNS.
  14. Rebasing to alpine 3.11.
  15. Fix perms on github and remove chmod that can stall the container.
  16. Rebasing to alpine 3.10.
  17. Switching to new Base images, shift to arm32v7 tag.
  18. Rebasing to alpine 3.9.
  19. Update readme with optional parameters.
  20. Fix docker compose example.
  21. Multi-arch image.
  22. Rebase to alpine 3.8.
  23. Rebase to alpine 3.7.
  24. Rebase to alpine 3.6.
  25. Rebase to alpine 3.5.
  26. Initial release.

Support#

Questions about running duckdns? Start with the documentation and the community; open an issue for bugs.

  • Shell access whilst the container is running:

    docker exec -it duckdns /bin/bash
  • To monitor the logs of the container in realtime:

    docker logs -f duckdns
  • Container version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' duckdns
  • Image version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' ghcr.io/linuxserver-playground/duckdns:latest

Community project

Improve duckdns

This image is kept up by volunteers, and you can be one of them. You don't need to know how the pipeline works: point an AI agent at the harness and describe what you want. It reproduces the problem in your Docker, tests the change and drafts the pull request for you to check.

Ask your agent

  • Something is wrong with the duckdns image: <what you saw>. Reproduce it, fix it and draft the PR.
  • Add <package> to the duckdns image, test it and draft the PR.
  • Make a mod for duckdns that <what you need>, and test it.

Contributing an image Every way to help Get the harness (opens in a new tab)

Related

Browse all

adguardhome-sync

v0.10.1-ls9

Adguardhome-sync is a tool to synchronize AdGuardHome config to replica instances.

0 GitHub starsalpinearm64

ddclient

v4.0.0-ls5

Ddclient is a Perl client used to update dynamic DNS entries for accounts on Dynamic DNS Network Service Provider. It was originally written by Paul Burry and is now mostly by wimpunk. It has the capability to update more than just dyndns and it can fetch your WAN-ipaddress in a few different ways.

0 GitHub starsalpinearm64

fail2ban

1.1.0-r2-ls10

Fail2ban is a daemon to ban hosts that cause multiple authentication errors.

0 GitHub starsalpinearm64

The Unifi-network-application software is a powerful, enterprise wireless software engine ideal for high-density client deployments requiring low latency and high uptime performance.

0 GitHub starsubuntuarm64