• Usage: Runs the container in the background and prints the container ID.

  • Command:

    docker run -d --name my-container nginx
    
    
    • This command runs an Nginx container in the background and names it my-container.