• Usage: Specifies the network to connect to for the container.

  • Command:

    docker run --network my-network nginx
    
    
    • This command connects the container to the my-network network.