docker vim not found
时间: 2023-08-26 21:07:10 浏览: 99
If you are trying to run vim inside a Docker container and you get the error "vim not found", it means that the vim package is not installed in the container.
You can install vim by running the following command inside the container:
```
apt-get update && apt-get install -y vim
```
This will update the package repository and install vim. Once the installation is complete, you should be able to run vim without any issues.
Alternatively, you can add the installation command to your Dockerfile to ensure that vim is installed in all containers based on that image:
```
FROM ubuntu:latest
RUN apt-get update && apt-get install -y vim
```
This will install vim during the image build process, so it will be available in every container based on that image.
阅读全文