文章 35
评论 9
浏览 13800
MySQL的docker容器中安装vim

MySQL的docker容器中安装vim

如何在MySQL的docker容器中安装vim以及其他的工具?

先进入MySQL容器:

docker exec -it <mysql容器id> bash

配置网易的镜像源

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

安装vim编辑器

apt-get install vim

安装其他的工具亦是如此!


标题:MySQL的docker容器中安装vim
作者:zouchanglin
地址:http://zouchanglin.cn/articles/2019/10/16/1571231389188.html
邮件:zchanglin3@gmail.com

始于技术 不止于技术