docker

Docker: Running nano in docker container


I open an interactive shell into a docker container like so

sudo docker exec -t -i {container_name} bash

So far so good but trying to run nano results in:

Error opening terminal: unknown.


Solution

  • I think this can be related with Docker Issue #9299.

    There are some workarounds commented in that issue: