login into container with the following command:
docker exec -it <container> bash
Then , run the following command .
apt-get update
apt-get install vim
login into container with the following command:
docker exec -it <container> bash
Then , run the following command .
apt-get update
apt-get install vim