desktop-linux icon indicating copy to clipboard operation
desktop-linux copied to clipboard

Dockers create routing with high priority which is not necessary wanted

Open Camilochiang opened this issue 1 year ago • 1 comments

Ubuntu 18.04.06 Docker version 20.10.21

When startinig/restarting dockers with systemctl, a new entry is added to the IP routing table. The problem with this is that the metric for priority is setted to 0 what make local socks connections to be refused and crashing other applications who requiere socket connections. Interestenly when trying to change the priority with ifmetric NETLINK gaves an error and the Iface disapear of the table.

Steps to reproduce:

sudo systemctl restart docker
route -n
sudo ifmetric docker0 2000
route -n

Camilochiang avatar Mar 21 '23 11:03 Camilochiang