When would I use `--interactive` without `--tty` in a Docker container? : <p>I did some googling and have had no luck finding a case where I'd run <code>docker run -i some_image</code> rather than  <code>docker run -it some_image</code>. </p>

<p>If I run <code>docker run -i --name sample some_image bash</code>, the container runs in the foreground, but I can't interact with it from the shell I'm in. I can't even stop it with CTRL+C. I can, however, pop open another shell and run <code>docker exec -it sample bash</code> and gain access to the container.</p>

<p>If I run <code>docker run -i -d --name sample some_image bash</code>, the container immediately exits. I can restart it with <code>docker start sample</code> and then it stays up, so I can run <code>docker exec -it sample bash</code> and interact with it again.</p>

<p>However, in all these cases, I ultimately end up using <code>-it</code> to interact with my containers. In what world would I not need the <code>-t</code> flag?</p>

<p>Cheers</p>
