docker run -d -p 8080:80 --name my-container nginx

Meaning: Creates and starts a new container from a specified image. Usage: To run a container in detached mode with port mapping. Example: docker run -d -p 8080:80 --name my-container nginx starts an nginx container with port 80 exposed on port 8080.

-d (detached mode)

-p (Port Mapping)

--name (Container Name)

-it (Interactive Terminal)

--rm (Remove Container)