How to Setup Pi-hole in Docker for Network-Wide Ad Blocking

Опубликовано: 09 Июль 2026
на канале: REUSER
22
0

The Ultimate YouTube Video Description
Don't throw away your old laptop! In this video, we are rescuing a broken, reflowed Lenovo IdeaPad 3 from the trash and transforming it into a powerful, energy-efficient Home Lab server.

We will walk you through the step-by-step process of installing Docker on an Ubuntu Server running inside a Proxmox Virtual Environment (PVE) virtual machine. Once our platform is ready, we will deploy our very first container: Pi-hole! Pi-hole acts as a network-wide Domain Name System (DNS) sinkhole that blocks annoying advertisements and trackers before they even reach your devices.

Real-world tech isn't perfect, and things WILL break! I won't hide the struggles. Together, we will troubleshoot common real-world administrative hurdles, including:

Fixing user permissions so you don't have to type Superuser Do (sudo) every single time.

Resolving Port 53 conflicts by disabling the built-in systemd-resolved service.

Resetting the Pi-hole web User Interface (UI) password directly from the Command Line Interface (CLI) using Docker executive (docker exec) commands.

Fixing the "No Internet" routing issue by switching to expert mode and permitting all network origins.

By the end of this tutorial, we will configure our Internet Service Provider (ISP) router to distribute our new server's Internet Protocol (IP) address via Dynamic Host Configuration Protocol (DHCP) and disable Internet Protocol version 6 (IPv6) to prevent DNS leaks. The result? A completely ad-free home network powered by upcycled hardware!

If you want to learn Linux, networking, and containerization through practical, hands-on projects, make sure to hit that Like button and Subscribe to Reuser for more tech upcycling guides!

🛠️ COMMANDS & DOCUMENTATION
Find the complete step-by-step Markdown documentation and the exact Docker Compose YAML (YAML Ain't Markup Language) configuration file on my GitHub repository:
https://github.com/reusersecondlifete...

⏱️ TIMESTAMPS
0:00 - Introduction: Saving an IdeaPad 3 from E-Waste
0:34 - What is Docker? Containerization Basics
0:55 - Installing Docker on Ubuntu Server via Secure Shell (SSH)
1:16 - Managing Docker User Permissions Without Sudo
1:52 - Creating the Home Lab Directory Structure
2:05 - Troubleshooting Port 53 & Disabling systemd-resolved
3:35 - Writing the Docker Compose Configuration for Pi-hole
4:25 - Deploying the Container & Fixing the Typo
5:00 - Hacking the Pi-hole Web UI Admin Password via CLI
5:35 - Testing on my Local Machine (And Why It Failed!)
6:35 - Fixing the Isolated Container Network (Permit All Origins)
7:30 - Network-Wide Deployment: Configuring the ISP Router
7:55 - Verification: Running an Ad-Blocker Test
8:20 - Outro

🖥️ HARDWARE & SOFTWARE USED
Hardware: Reflowed Lenovo IdeaPad 3 (Laptop to Server conversion)

Hypervisor: Proxmox Virtual Environment (PVE)

Operating System: Ubuntu Server

Container Platform: Docker & Docker Compose

Network App: Pi-hole (DNS Ad-Blocker)

🏷️ VIDEOS TAGS / KEYWORDS
homelab, selfhosting, docker tutorial, pihole setup, proxmox ve, ubuntu server, upcycling tech, ewaste reduction, network adblocker, diy server, laptop to server, docker compose, linux troubleshooting, sysadmin basics, learning by teaching, reuser tech