• Usage: Automatically removes the container when it exits.

  • Command:

    docker run --rm nginx
    
    
    • This command ensures that the container is removed once it stops.