How to access nano from inside our Docker containers

If you have seen the imagen below...

You know what I'm talking about, you are trying to use nano or other console editor that needs to know the terminal you are running it in, so to fix this is just as simple as run the following command:

export TERM=xterm  

And nano will work inside your docker container

docker issue related