The port of the docker container cannot be accessed

Link docker’s virtual network segment to the main network card

sudo ip rule add to 172.21.0.0/24 lookup main

Guess you like

Origin blog.csdn.net/qq_26356861/article/details/132345537