[Docker] Install vim command in Docker

Preface

When I was using Dockerit to create files, I found that there was no vimcommand. Then, I tried to install the vim command.


Docker image installed based on Ubuntu

  • Update source
    Execute command apt-get update. Synchronize /etc/apt/sources.listand /etc/apt/sources.list.dsoftware source.

  • Install vim command related packages

    apt-get install vim

Reference

[1]. Install vim in docker container


Installation using ping command within Docker

apt-get update
apt install iputils-ping
Reference

[1]. Install the ping command in Docker


Guess you like

Origin blog.csdn.net/u010416101/article/details/121462851