First I create the docker:
sudo docker run -t -i ubuntu /bin/bash
Instead of this you can enter in a running docker with his number or name:
sudo docker exec -it be8aa338d656 bash
Then inside the docker run this code:
apt-get update
apt-get install vim nano