Table of contents
Problem Description:
In docker, if you want to execute vim to edit files, "docker bash: vim: command not found" pops up (as shown in the figure below), how to solve it?
problem solved:
The solution is mainly divided into two steps:
Step 1, execute the following command:
apt-get update
Step 2, continue to execute the following command:
apt-get install -y vim
Execute the vim command again, and no error will be reported.