What is the difference?

by running a container with

docker run -p 38282:8080 kodekloud/simple-webapp:blue

compared to

docker run kodekloud/simple-webapp:blue -p 38282:8080

Hello, nems
First one is exposing port mapping for host and container port. Second one is not correct way to port mapping because after image:tag whatever you write, it will take as a arguments for a container.

1 Like

Thanks for the reply.