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