Raspberry Pi 4b intermittent internet failure caused by dhcpcd service failed on boot (probably caused by Docker created Interfaces)

I have a Raspberry pi 4b that I used as a docker web server. It is all good until I find it always disconnect to the Internet.

Symptoms:

  • Internet disconnect after a day (IP lease expires) 
  • When rebooted, the upper right Internet icon shows a "Disconnect" icon, tooltips shows something like "cannot connect to dhcpcd"
  • systemctl status dhcpcd shows the following error : "dhcpcd route socket overflowed"
  • Enable dhcpcd manually fixes thing until rebooting or trying restarting docker service

Solution/Workaround:

 Add the following line to /etc/dhcpcd.conf and reboot:

    denyinterfaces veth*

Comments