With Container Run

When we run the container using docker container run --publish 80:80 --name <container-name> nginx, it actually interpret by docker container run --publish 80:80 --name <container-name> -d nginx:latest nginx -T.

This command do the following steps:

So while run the container using the specified command, we can change the port mapping and also the image version.