Skip to content Skip to footer
Please or Register to create posts and topics.

Installing AdGuard in Docker

Prerequisites: Linux Computer - NodeJs - Docker

This command will pull the latest stable version:

docker pull adguard/adguardhome

Create directories for persistent configuration and data

The image exposes two volumes for data and configuration persistence. You should
create a data directory
on a suitable volume on your host system, e.g. /my/own/workdir,
and a configuration directory
on a suitable volume on your host system, e.g. /my/own/confdir.

Create and run the container

Use the following command to create a new container and run AdGuard Home:

docker run --name adguardhome\
    --restart unless-stopped\
    -v /my/own/workdir:/opt/adguardhome/work\
    -v /my/own/confdir:/opt/adguardhome/conf\
    -p 53:53/tcp -p 53:53/udp\
    -p 67:67/udp -p 68:68/udp\
    -p 80:80/tcp -p 443:443/tcp -p 443:443/udp -p 3000:3000/tcp\
    -p 853:853/tcp\
    -p 784:784/udp -p 853:853/udp -p 8853:8853/udp\
    -p 5443:5443/tcp -p 5443:5443/udp\
    -d adguard/adguardhome

Now you can open the browser and navigate to http://127.0.0.1:3000/ to
control your AdGuard Home service.

Don't forget to use your own data and config directories!

Ports mappings you may need:


  • -p 53:53/tcp -p 53:53/udp
    : plain DNS.


  • -p 67:67/udp -p 68:68/tcp -p 68:68/udp
    : add if you intend to use
    AdGuard Home as a DHCP server.


  • -p 80:80/tcp -p 443:443/tcp -p 443:443/udp -p 3000:3000/tcp
    : add if
    you are going to use AdGuard Home's admin panel as well as run AdGuard Home
    as an HTTPS/DNS-over-HTTPS server.


  • -p 853:853/tcp
    : add if you are going to run AdGuard Home as a DNS-over-TLS server.


  • -p 784:784/udp -p 853:853/udp -p 8853:8853/udp
    : add if you are going
    to run AdGuard Home as a DNS-over-QUIC server.
    You may only leave one or two of these.


  • -p 5443:5443/tcp -p 5443:5443/udp
    : add if you are going to run
    AdGuard Home as a DNSCrypt server.

Control the container

  • Start: docker
    start adguardhome

  • Stop: docker
    stop adguardhome

  • Remove: docker
    rm adguardhome

Read More

ubuntu-linux[1]Find Us On Ubuntu Linux Forum

Working Hours

Mon-Fri: 10 AM – 6 PM

Call Or Text

Sunday: Closed

Office

Arlington, TX

Get In Touch
SiteLock

A1 Computers © Computer and Network Services For Professionals By Professionals