Docker problem: The container cannot access the host's PORTS

The docker container cannot access the ports of the host. Solution: The
operation is as follows:

firewall-cmd --permanent --zone=trusted --change-interface=docker0
firewall-cmd --reload

Guess you like

Origin blog.csdn.net/qq_42658739/article/details/107953850