How to map docker container port to host port?

How to map docker container port to the host port By default, when the container is created, it doesn’t publish any port to Internet to within the network connected to the host. In order to acheive it, use –publish or -p flag. This creates a firewall rule...