To use nano in Docker, you have to update apt-get and install nano. When trying to open a file you may face the error
Error opening terminal: unknown.
No worries, just export the TERM=xterm variable
apt-get update apt-get install nano export TERM-xterm
