How to solve "bash: vim: command not found" in docker

Table of contents

Problem Description:

problem solved:


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.

Guess you like

Origin blog.csdn.net/weixin_41862755/article/details/132286376