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:

  • Docker Swarm: How to handle persistent data (e.g. database)
  • My app can't create log files when it starts up inside Docker
  • How can I define a build directory if a required Docker images doesn't exist
  • docker-machine inside Symfony Process
  • Airflow inside docker running a docker container
  • Docker cannot acces registry from openshift
  • 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.

  • Deploy changes to Docker container using Jenkins
  • Use docker-compose with multiple repositories
  • How to reuse docker-compose projects?
  • How to use Docker in Windows ?
  • Redirect different domains to the same apache using reverse proxy
  • Compass provision failing with Docker compose up
  • 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.