title: NCurses in Docker Container
body: <p>I currently have a TOR relay set up in a Docker container for quick deployment online. Everything is working well and ARM (a TOR monitoring application) is installed and ready to be used.</p>
  
  <p>When I execute a bash shell in the container to run ARM (a Python app that uses NCurses), ARM throws the following error:</p>
  
  <p><em>curses.error: setupterm: could not find terminal</em></p>
  
  <p>I start up the container, everything starts up fine, then I exec a shell as follows:</p>
  
  <p><em>docker exec -t -i container_id /bin/bash</em></p>
  
  <p>Once I have the bash shell, I run the ARM application which results in the error above.</p>
  
  <p>Googling the issue indicated that the TERM environmental variable might be incorrect (<em>echo $TERM</em> comes back with <em>dumb</em>). The <em>t</em> flag in Docker is supposed to be setting up a TTY.</p>
  
  <p>I assume others have come across this issue with Docker containers, but I'm at a loss regarding how to solve the issue. Googling doesn't come up with anything Docker specific.</p>
  
  <p>Help!</p>