Guide to Port Mapping, Binding, and Docker Container Image Creation
Port Mapping/Binding
Port Mapping / Port Binding is used to map the host port with the container port, to expose the container application to the internet.
docker run -it -p <host_port>:<container_port>
e.g. docker run -it -p 8089:8080 tomcat
...
docker-learnings.hashnode.dev3 min read