When using the docker container, sometimes there is no vim installed in it. When you type the vim command, the prompt says: vim: command not found, you need to install vim at this time, but when you type the apt-get install vim command, it prompts:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package vim
At this time, you need to type: apt-get update,
The purpose of this command is to synchronize the indexes of the sources listed in /etc/apt/sources.list and /etc/apt/sources.list.d so that the latest packages can be obtained.
After the update is complete, type the command: apt-get install vim command .
apt-get install telnet 安装telnet
apt-get install net-tools 安装ifconfig