The -p flag can be used for forwarding a port from a container to the host.
-p
docker run -p <host_port>:<container_port> <image>
Docs