Use nano in Docker containers

If for some reason you find yourself needing to use nano in a Docker container, you can set the terminal type and then you’ll be able to use it. Say for example you ran bash with the exec command, you can then run:

and it’ll allow you to use the terminal as normal for nano/clear etc.