Installing AdGuard in Docker
Quote from A1 Computers on January 13, 2023, 11:01 amPrerequisites: 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:
: plain DNS.
-p 53:53/tcp -p 53:53/udp
: add if you intend to use
-p 67:67/udp -p 68:68/tcp -p 68:68/udp
AdGuard Home as a DHCP server.
: add if
-p 80:80/tcp -p 443:443/tcp -p 443:443/udp -p 3000:3000/tcp
you are going to use AdGuard Home's admin panel as well as run AdGuard Home
as an HTTPS/DNS-over-HTTPS server.
: add if you are going to run AdGuard Home as a DNS-over-TLS server.
-p 853:853/tcp
: add if you are going
-p 784:784/udp -p 853:853/udp -p 8853:8853/udp
to run AdGuard Home as a DNS-over-QUIC server.
You may only leave one or two of these.
: add if you are going to run
-p 5443:5443/tcp -p 5443:5443/udp
AdGuard Home as a DNSCrypt server.Control the container
Start:
docker
start adguardhomeStop:
docker
stop adguardhomeRemove:
docker
rm adguardhome
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:
-
: plain DNS.
-p 53:53/tcp -p 53:53/udp -
: add if you intend to use
-p 67:67/udp -p 68:68/tcp -p 68:68/udp
AdGuard Home as a DHCP server. -
: add if
-p 80:80/tcp -p 443:443/tcp -p 443:443/udp -p 3000:3000/tcp
you are going to use AdGuard Home's admin panel as well as run AdGuard Home
as an HTTPS/DNS-over-HTTPS server. -
: add if you are going to run AdGuard Home as a DNS-over-TLS server.
-p 853:853/tcp -
: add if you are going
-p 784:784/udp -p 853:853/udp -p 8853:8853/udp
to run AdGuard Home as a DNS-over-QUIC server.
You may only leave one or two of these. -
: add if you are going to run
-p 5443:5443/tcp -p 5443:5443/udp
AdGuard Home as a DNSCrypt server.
Control the container
-
Start:
docker
start adguardhome -
Stop:
docker
stop adguardhome -
Remove:
docker
rm adguardhome