docker容器如何安装vim
Posted Kingsy blog
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker容器如何安装vim相关的知识,希望对你有一定的参考价值。
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
apt-get update
apt-get install -y vim
以上是关于docker容器如何安装vim的主要内容,如果未能解决你的问题,请参考以下文章