what does the -i flag do in docker?

I was just reading THIS article on Docker , Its an article describing how to dockerize a simple application. The following command is executed:

$ docker run -t -i ubuntu:14.04 /bin/bash, 

and then, The following explanation is given:

  • Call java application launched from another container
  • Docker swarm load balancing - How to give common name to the service?
  • golang:sshfs -o reconnect fails when used inside docker container with “reading directory .: Input/output error”
  • Artifactory the web interface is not accessible
  • Why set VISIBLE=NOW in /etc/profile?
  • Adding nodes on the fly with Docker Swarm
  • Here we’ve again specified the docker run command and launched an
    ubuntu:14.04 image. But we’ve also passed in two flags: -t and -i. The
    -t flag assigns a pseudo-tty or terminal inside our new container and the -i flag allows us to make an interactive connection by grabbing
    the standard in (STDIN) of the container.

    I don’t understand the meaning of:

    -i flag allows us to make an interactive connection by grabbing the standard in (STDIN)

    Thank you.

  • AWS opsworks docker service discovery
  • Kubernetes: Dynamically create configuration json files from j2 templates
  • What does set -e and exec “$@” do for docker entypoint scripts?
  • How to build a large docker image with relatively small disk space consumption?
  • Proper way of automatically adding indexes docker service with Gitlab CI
  • docker exe into container does not show container id?
  • One Solution collect form web for “what does the -i flag do in docker?”

    Docker’s -i/--interactive allows you to send commands to the container via standard input (“STDIN”), which means you can “interactively” type commands to the pseudo-tty/terminal created by the -t switch.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.