How to use VIM for a new docker image

Time:2021-12-3

Modify the default download address

mv /etc/apt/sources.list /etc/apt/sources.list.bak 

echo "deb http://mirrors.163.com/debian/ jessie main non-free contrib" >> /etc/apt/sources.list 

echo "deb http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list 

echo "deb-src http://mirrors.163.com/debian/ jessie main non-free contrib" >>/etc/apt/sources.list 

echo "deb-src http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list

Update apt get

apt-get update

This command is used to synchronize  / etc/apt/sources.list   and  / etc/apt/sources.list.d   The index of the source listed in so that you can get the latest package.

Download VIM

apt-get install vim

After downloading, you can use VIM happily

This work adoptsCC agreement, reprint must indicate the author and the link to this article