How to configure Centos 7 firewallD to allow docker containers free access to the host's network ports?

Maybe better than earlier answer;

firewall-cmd --permanent --zone=trusted --change-interface=docker0
firewall-cmd --permanent --zone=trusted --add-port=4243/tcp
firewall-cmd --reload

Theses commands did the trick:

firewall-cmd --permanent --zone=trusted --add-interface=docker0
firewall-cmd --permanent --zone=trusted --add-port=4243/tcp

I had problems with this as well; this did the trick for me:

firewall-cmd --zone=public --add-masquerade --permanent

From: https://serverfault.com/questions/987686/no-network-connectivity-to-from-docker-ce-container-on-centos-8