title: Docker and git bash: the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty'
body: <p>I try to run the following Docker command in git bash shell.</p>
  
  <p><code>docker exec -it service /bin/bash</code></p>
  
  <p>but I get the following error</p>
  
  <p><code>the input device is not a TTY.  If you are using mintty, try prefixing the command with 'winpty'</code></p>
  
  <p>When I try to run the command with <code>winpty</code> as follows</p>
  
  <p><code>winpty docker exec -it service /bin/bash</code></p>
  
  <p>The git bash shell just prompts for the next command, but mess up with rendering the text on the screen. How do I properly attach interactive shell on the Docker container on git bash?</p>
  
  <p>I can run the command in Docker Quickstart Terminal, but the problem is the terminal output history is very limited (old output is lost when new ouput is printed). Alternatively, how do I extend the output history size to unlimited scrolling on the Docker Quickstart Terminal?</p>