Docker – Logs, Remove, and Port Mapping
Port Mapping
When we run an application inside a container, we define the port on which the application will run. The container runs the application on that port.
It is not possible to access an application running inside Docker from outside the container unless port mapping is configured.
Port mapping is specified using the -p option.






