• Usage: Assigns a name to the container.

  • Command:

    docker run --name my-container nginx
    
    
    • This command names the container my-container.