The command to run depends on what base image you are using.
For Alpine,
vi
is installed as part of the base OS. Installing vim
would be:apk -U add vim
For Debian and Ubuntu:
apt-get update && apt-get install -y vim
For CentOS,
vi
is usually installed with the base OS. For vim
:yum install -y vim
from : https://stackoverflow.com/questions/31515863/how-to-run-vi-on-docker-container
No comments:
Post a Comment