Docker Containers Have Major Communication Issues

I had to reinstall the OS on my homelab last Friday, and I find that my docker containers are having serious communications issues.

The issues are as follows:

  • published ports on docker containers cannot be accessed from other devices on the LAN
    • I can ping my host device from the LAN device (e.g. 192.168.1.30 can ping 192.168.1.50), but I get a timeout or cannot connect response when trying to connect to 192.168.1.50:8080 via both browser and curl from the LAN device
    • This issue persists on other LAN devices
  • the docker containers cannot ping out (e.g. google.com), all packets are lost
  • the docker containers cannot communicate with each other
    • these containers were on the same network, and I have had them successfully communicate with each other in the past using the same compose files

OS is Ubuntu 22.04.5 (first tried 24.04.2)
Docker is installed via the apt repo
Image is launched via docker compose up -d
I have tried a second image and have the same issues (this is how I discovered inter-container communication was down)
I have tried a basic nginx image (docker run -it --rm -d -p 8050:80 --name web nginx) and have the same issues
UFW is disabled (disabled by default on Ubuntu, confirmed via sudo ufw status)
iptables seems to show the 8080 port rule (I’m not familiar with reading this)

Chain DOCKER (2 references)
target     prot opt source               destination         
ACCEPT     tcp  --  0.0.0.0/0            172.18.0.2           tcp dpt:8080

I noticed that ip addr show indicates that both base docker network and the network defined in my compose are DOWN, and neither seem to have ipv4 or ipv6 addresses

3: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default 
    link/ether 92:e6:19:8d:17:65 brd ff:ff:ff:ff:ff:ff
    inet 172.17.0.1/16 brd 172.17.255.255 scope global docker0
       valid_lft forever preferred_lft forever
4: br-63f7728ee57d: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default 
    link/ether 36:22:75:e6:75:ef brd ff:ff:ff:ff:ff:ff

Is this the cause of my issues? How do I resolve it, if so? What are my next steps in troubleshooting this issue if this is not my problem?

Which one? There is one from Ubuntu and one from Docker which is the recommended.

Sorry, I will read your post again after you answered this question, but I’m trying to go through the unanswered topics quickly.