Manually Install AdGuard Home in a MikroTik Container (Method 2)
TABLE OF CONTENTS (Nhấn để xem)
In the previous guide, I installed an AdGuard Home container using a ready-made Docker image.
That approach is fast, but some installations fail even after repeated attempts. This guide uses a blank Docker image with no service installed, then installs AdGuard Home inside it.
The offline image can reduce image-pull failures and allows other services to be added. The trade-off is more setup work.
I. Enable Container support
- Open Terminal and run
/system/device-mode/update container=yes.
0 - When prompted, power-cycle the router.
- After reboot, run
/system/device-mode/printand confirmcontainer: yes.
0.1
II. Prepare container networking and install the blank image
II.A. Prepare networking
- Create a bridge named dockers.

1 - Assign an IP address.

2 - Create a VETH interface.

3 - Add the port to the dockers bridge.

4
II.B. Install the blank Docker image
- Download the blank image from Google Drive
or the Mega mirror.
- It is based on Alpine Linux 3.17 Slim.
- It uses Supervisor to start services.
- It contains no personal customization or harmful scripts.
- If you do not trust a prebuilt image, build your own.
- Upload the image to MikroTik through Files in WinBox.

B1 
B1_1 - Open Container, click Add, and configure:
| Field | Value |
|---|---|
| File | The Docker image filename (file.tar) |
| Interface | The VETH created in II.A |
| Root Dir | The container storage directory |
| Logging | Show logs in WinBox; enable while troubleshooting |
| Start On Boot | Start after MikroTik boots |

Click Apply. If the image is installed correctly, the result should look like the screenshot.
Click Start and confirm Status changes to Running.
III. Install AdGuard Home in the blank image
- Open WinBox Terminal:
/container/shell 0
0 is the container ID. Run /container print if the ID is different.
- Download AdGuard Home:
cd /opt
wget https://github.com/AdguardTeam/AdGuardHome/releases/download/v0.107.38/AdGuardHome_linux_amd64.tar.gz

- Extract it:
tar -vxzf AdGuardHome_linux_amd64.tar.gz

- Configure Supervisor to start AdGuard Home:
vi /etc/supervisord.conf
Add:
[program:adguardhome]
command=/opt/AdGuardHome/AdGuardHome

Save with ESC, then :wq! and Enter.
Stop and start the container again.

Open http://10.0.0.2:3000/ to configure AdGuard Home.
IV. Set DHCP DNS to AdGuard Home
- Open IP > DHCP Server > Network.

8
Good luck.
Mikrotik
- RouterOS v7: Route Clients Through Multiple WANs with Routing Rules
- MikroTik Firewall Filter Rules for Better Security
- Manually Install AdGuard Home in a MikroTik Container (Method 2) Reading
- Tips for Optimizing Ping and Bufferbloat on MikroTik
- How to Install AdGuard Home Directly on a MikroTik Router
Discussion & Feedback 0
Share your questions, feedback or insights with the community