linux - How to run vi on docker container?
I have installed docker on my host virtual machine. And now want to create a file using vi.

login into container with the following command:
docker exec -it <container> bash

Then , run the following command .
apt-get update
apt-get install vim

