AdGuard and Docker: The Ultimate Ad-Blocking Solution

Опубликовано: 11 Март 2026
на канале: AJ's Home Lab!
715
7

Block all ads on your network using #addgaurd with running docker run and pulling the image!

Are you having problems with ads in your browser? Wondering how toBlock ads without installing any extra software?

In this video, we'll show you how to use AdGuard and Docker to create an ad-blocking solution that will work in almost any browser.

By the end of this video, you'll know how to install AdGuard and use Docker to block ads in your browser. Plus, you'll know how to create a custom ad-blocking rule for any website!


What is better pi hole or adgaurd!?

This has to ran off a Linux base machine, so for this install i chose to use ubuntu but you use what your like. Make sure your system is up to date with the latest sudo apt upgrade packages so this works!

Simple install docker
Copy and paste commands below and your done! To access the GUI use the IP address of the machine running this container!

Docker Commands:
docker run --name adguardhome \
--restart unless-stopped \
-v adguard_data:/opt/adguardhome/work \
-v adguard_config:/opt/adguardhome/conf \
-p 53:53/tcp -p 53:53/udp \
-p 80:80/tcp -p 443:443/tcp -p 443:443/udp -p 3000:3000/tcp \
-d adguard/adguardhome

You will get a error saying these ports are already in use as Linux base machines use them so enter these to commands:

sudo systemctl stop systemd-resolved
sudo systemctl disable systemd-resolved

Then remove docker image by typing docker rm "image name"
Then run the docker run command:
docker run --name adguardhome \
--restart unless-stopped \
-v adguard_data:/opt/adguardhome/work \
-v adguard_config:/opt/adguardhome/conf \
-p 53:53/tcp -p 53:53/udp \
-p 80:80/tcp -p 443:443/tcp -p 443:443/udp -p 3000:3000/tcp \
-d adguard/adguardhome

If done right you should be able to access the GUI to proceed with the set up by going to (Your IP address and port 3000)

#docker #dockecontainers #adgaurd #linux

Our links:
Facebook:   / homelabnetworks  
Instagram:   / homelabnetworks  
Twitter:   / homelabnetworks