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:

  • Running gunicorn inside heroku docker
  • Unable to install windowsServerCore Container Image
  • Restart existing Docker container with port forwarding
  • Using 'pyenv activate' in a Dockerfile
  • docker-compose not overriding dockerfile environment variables
  • Change Docker native images location on Windows 10 Pro
  • 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.

  • How to specify cpu percent of host usage for container in fig
  • Executing containers on multiple architectures [closed]
  • Prevent volume creation on docker run
  • Deploy a docker image from a registry with basic auth
  • high availability with docker swarm mode
  • Docker IO Error with local js file
  • 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.