Skip to content

Repository files navigation

banner

ADGUARD

size5pxpulls5px5pxswiss_made

Run AdGuardHome rootless and distroless.

INTRODUCTION 📢

AdGuard Home is a network-wide software for blocking ads and tracking. After you set it up, it'll cover all your home devices, and you won't need any client-side software for that.

SYNOPSIS 📖

What can I do with this? This image will run AdGuard-Home rootless and distroless, for maximum security and performance.

UNIQUE VALUE PROPOSITION 💶

Why should I run this image and not the other image(s) that already exist? Good question! Because ...

Important

  • ... this image runs rootless as 1000:1000
  • ... this image has no shell since it is distroless
  • ... this image is auto updated to the latest version via CI/CD
  • ... this image has a health check
  • ... this image runs read-only
  • ... this image is automatically scanned for CVEs before and after publishing
  • ... this image is created via a secure and pinned CI/CD process
  • ... this image runs a basic integration test before it will be published (or not if it fails)
  • ... this image is very small
  • ... this image creates a random password at start if none is set in the config
  • ... this image supports inline configs

If you value security, simplicity and optimizations to the extreme, then this image might be for you.

COMPARISON 🏁

Below you find a comparison between this image and the most used or original one.

imagesize on diskinit default asdistrolesssupported architectures
11notes/adguard17MB1000:1000amd64, arm64, armv7
adguard/adguardhome81MB0:0386, amd64, arm64, armv6, armv7, ppc64le

DEFAULT CONFIG 📑

dns:
bind_hosts:
- 0.0.0.0ratelimit: 0aaaa_disabled: trueall_servers: trueupstream_dns:
- 9.9.9.10bootstrap_dns:
- 9.9.9.10cache_size: 1073741824max_goroutines: 1024hostsfile_enabled: falsedhcp:
enabled: falsehttp:
address: 0.0.0.0:3000session_ttl: 720hquerylog:
enabled: truefile_enabled: truesize_memory: 8dir_path: /adguard/varusers:
- name: adminpassword: $2b$12$xzIFiVMrq2jv5NH5pNNQSuEK84FDNI4PoiJbKIhZqUe1Ld/v1BI9Wauth_attempts: 3block_auth_min: 60filtering:
blocking_mode: nxdomaincache_time: 1440filters_update_interval: 24blocked_response_ttl: 3660protection_enabled: trueclients:
persistent:
- name: dnslookupids:
- 127.0.0.1ignore_querylog: trueignore_statistics: truelog:
enabled: truefile: ""max_backups: 0max_size: 100max_age: 3compress: falselocal_time: trueverbose: falseschema_version: 29

The default configuration contains no special settings, except ignoring the dnslookup health check in the statistics and as a client to not pollute your UI or statistics. Consider replacing it with your own or start the container with the default one and start changing what you need. The configuration will be updated with your settings if you use the mentioned volumes below. It is recommended to always add the exception for dnslookup. If using the default config, the container will set a new random password for the user admin at start and print it to the log only once!

clients:
persistent:
- name: dnslookupids:
- 127.0.0.1ignore_querylog: trueignore_statistics: true

VOLUMES 📁

  • /adguard/etc - Directory of the configuration file
  • /adguard/var - Directory of database and query log files

COMPOSE ✂️

name: "dns"x-lockdown: &lockdown# prevents write access to the image itselfread_only: true# prevents any process within the container to gain more privilegessecurity_opt:
- "no-new-privileges=true"services:
adguard:
image: "11notes/adguard:0.107.79"<<: *lockdownenvironment:
TZ: "Europe/Zurich"volumes:
- "adguard.etc:/adguard/etc"
- "adguard.var:/adguard/var"tmpfs:
# needed for read-only
- "/adguard/run:uid=1000,gid=1000"ports:
- "53:53/udp"
- "53:53/tcp"
- "3000:3000/tcp"networks:
frontend:
sysctls:
# allow rootless container to access ports < 1024net.ipv4.ip_unprivileged_port_start: 53restart: "always"volumes:
adguard.etc:
adguard.var:
networks:
frontend:

To find out how you can change the default UID/GID of this container image, consult the RTFM.

DEFAULT SETTINGS 🗃️

ParameterValueDescription
userdockeruser name
uid1000user identifier
gid1000group identifier
home/adguardhome directory of user docker

ENVIRONMENT 📝

ParameterValueDefault
TZTime Zone
DEBUGWill activate debug option for container image and app (if available)
ADGUARD_CONFIG(optional)Will overwrite the default config with the value of this variable if set (inline config)

MAIN TAGS 🏷️

These are the main tags for the image. There is also a tag for each commit and its shorthand sha256 value.

There is no latest tag, what am I supposed to do about updates?

It is my opinion that the :latest tag is a bad habbit and should not be used at all. Many developers introduce breaking changes in new releases. This would messed up everything for people who use :latest. If you don’t want to change the tag to the latest semver, simply use the short versions of semver. Instead of using :0.107.79 you can use :0 or :0.107. Since on each new version these tags are updated to the latest version of the software, using them is identical to using :latest but at least fixed to a major or minor version. Which in theory should not introduce breaking changes.

If you still insist on having the bleeding edge release of this app, simply use the :rolling tag, but be warned! You will get the latest version of the app instantly, regardless of breaking changes or security issues or what so ever. You do this at your own risk!

REGISTRIES ☁️

docker pull 11notes/adguard:0.107.79
docker pull ghcr.io/11notes/adguard:0.107.79
docker pull quay.io/11notes/adguard:0.107.79

UNRAID VERSION 🟠

This image supports unraid by default. Simply add -unraid to any tag and the image will run as 99:100 instead of 1000:1000.

NOBODY VERSION 👻

This image supports nobody by default. Simply add -nobody to any tag and the image will run as 65534:65534 instead of 1000:1000.

SOURCE 💾

PARENT IMAGE 🏛️

Important

This image is not based on another image but uses scratch as the starting layer. The image consists of the following distroless layers that were added:

BUILT WITH 🧰

GENERAL TIPS 📌

Tip

  • Use a reverse proxy like Traefik, Nginx, HAproxy to terminate TLS and to protect your endpoints
  • Use Let’s Encrypt DNS-01 challenge to obtain valid SSL certificates for your services

ElevenNotes™️

This image is provided to you at your own risk. Always make backups before updating an image to a different version. Check the releases for breaking changes. If you have any problems with using this image simply raise an issue, thanks. If you have a question or inputs please create a new discussion instead of an issue. You can find all my other repositories on github.

created 19.08.2026, 06:03:39 (CET)

About

Run AdGuardHome rootless and distroless.

Resources

Stars

136 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages