• Usage: Mounts a volume or directory into the container.

  • Command:

    docker run -v /host/path:/container/path nginx
    
    
    • This command mounts the host directory /host/path to the container directory /container/path.