docker run command in image code example
Example 1: docker run command on container
sudo docker exec -it <container name> <command>
Example 2: - d in docker
docker run -d <image name>
# -d is used for detached mode
sudo docker exec -it <container name> <command>
docker run -d <image name>
# -d is used for detached mode