我们经常操作Docker镜像的时候需要Vim操作。
具体操作如下:
Question
在使用docker容器时,有时候里边没有安装vim,敲vim命令时提示说:vim: command not found,这个时候就需要安装vim,可是当你敲apt-get install vim命令时,提示:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package vim
Solution
#ubantu系统
apt-get update
apt-get install vim
Reference
[1]. docker器皿中安装vim