• Usage: Allocates a pseudo-TTY. Often used with i to keep stdin open.

  • Command:

    docker run -t -i nginx
    
    
    • This command runs the container with a TTY allocated and interactive mode.