This article explains how to modify docker and firewalld to make them operate together instead of docker bypassing firewalld and allowing all connections.