docker 容器安装 vim 编辑器
docker 容器安装 vim 编辑器1,进入docker容器:docker exec -it name|id bash2,安装,直接在容器内执行以下命令即可: mv /etc/apt/sources.list /etc/apt/sources.list.bakecho "deb http://mirrors.163.com/debian/ jessie main non-f...
·
docker 容器安装 vim 编辑器
1,进入docker容器:
docker exec -it name|id bash
2,安装,直接在容器内执行以下命令即可:
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
更多推荐
已为社区贡献4条内容
所有评论(0)