在使用容器时,进入容器内部,执行vi命令,提示:"bash: vi: command not found",这是因为vim没有安装,但直接apt-get install vim会提示:"Unable to locate package vim",正确安装步骤如下:
更新软件列表
apt-get update
安装vim命令
apt-get install vim
至此,vi命令可以正常使用!
在使用容器时,进入容器内部,执行vi命令,提示:"bash: vi: command not found",这是因为vim没有安装,但直接apt-get install vim会提示:"Unable to locate package vim",正确安装步骤如下:
更新软件列表
apt-get update
安装vim命令
apt-get install vim
至此,vi命令可以正常使用!