how to name a container in docker run code example
Example 1: docker run name
docker run --name <container name> -dp <local port>:<container port> <image>
Example 2: - d in docker
docker run -d <image name>
# -d is used for detached mode
docker run --name <container name> -dp <local port>:<container port> <image>
docker run -d <image name>
# -d is used for detached mode