Why does my Raspberry Pi lose internet when I run a Docker container?

0
5
Asked By CuriousCoder93 On

Hey everyone! I set up a Raspberry Pi 3B with Raspbian OS (64 bits) and followed a guide to install Docker to run Adguard Home on my local network. After successfully getting everything set up and starting the Docker container with "docker compose up -d", I found I could access the Adguard Home dashboard just fine. However, when I change my router's DNS settings to point to my Pi's IP address, I lose internet access on all devices. I've noticed that my Pi loses internet connectivity the moment I start the Docker container, and even after I stop it and try restarting NetworkManager or rebooting, I still can't ping anything. The only way to regain internet access is to stop Docker, change the static IP of the Pi in my router, and reboot everything. My Pi is connected to the router via an Ethernet cable, and I can SSH into it without issues. I suspect there's a problem with my Docker setup or configuration but can't pinpoint it. Any insights would be super helpful!

2 Answers

Answered By NetworkNerd42 On

Did you disable the systemd-resolved DNS Stub Listener? I didn't see that mentioned in the guide, but it's necessary for Docker to work properly without DNS conflicts.

CuriousCoder93 -

No, I haven't tried that yet. Is there a specific way I should go about disabling it?

Answered By TechSavvy06 On

It sounds like a DNS issue. Have you tried checking your DNS settings? Sometimes the configuration can mess things up, especially with Docker.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.