How-To: Installing & Using Docker Container and Pihole in MikroTik CHR

Опубликовано: 12 Март 2026
на канале: BGOcloud good to know!
3,012
19

As of the latest exciting news around MikroTik and their fresh release of the docker container in MikroTik, you may have heard that adding docker to RouterOS brings some interesting possibilities. Like managing some micro services on a web level. But the question now is how to install it and use the latest addition?

This hands-on tutorial will show you the steps and the proper way for installing docker and Pihole.

You can later set up a VPN and connect your mobile devices to your CHR:
OpenVPN:    • How to set up OpenVPN server on Mikrotik R...  
L2TP:    • How to set up L2TP over IPSec VPN server o...  
PPTP:    • How to set up PPTP VPN server on Mikrotik ...  

Take a look at our powerful MikroTik VPS servers and choose a suitable plan: https://www.bgocloud.com/hosting/mikrotik-vps

Link to our Knowledge base article and RouterOS CLI commands: https://www.bgocloud.com/knowledgebase/76/...

Timestamps:
0:00 Introduction
0:30 Updating RouterOS
0:44 Installing container package
1:14 Enabling containers in MikroTik CHR
1:43 Creating a bridge for Docker
2:11 Creating a virtual interface for the container
2:40 Creating a NAT rule for Docker containers
3:02 Setting envs for Pi-hole container
3:13 Setting the user and password for Pi-hole admin panel in Docker
3:28 Setting mounts for Pi-hole container
4:02 Setting up Docker Registry in MikroTik CHR
4:16 Creating the Docker container in MikroTik CHR
4:56 Starting the Docker container in MikroTik CHR
5:00 Configuring NAT to access Pi-hole in MikroTik CHR
5:31 Setting Pi-hole as the DNS server in MikroTik
5:46 Accessing Pi-hole admin panel
6:14 Conclusion