MySQL的docker容器中安装vim
如何在MySQL的docker容器中安装vim以及其他的工具?
先进入MySQL容器:
1docker exec -it <mysql容器id> bash
配置网易的镜像源
1mv /etc/apt/sources.list /etc/apt/sources.list.bak
2echo "deb http://mirrors.163.com/debian/ jessie main non-free contrib" > /etc/apt/sources.list
3
4echo "deb http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list
5
6echo "deb-src http://mirrors.163.com/debian/ jessie main non-free contrib" >>/etc/apt/sources.list
7
8echo "deb-src http://mirrors.163.com/debian/ jessie-proposed-updates main non-free contrib" >>/etc/apt/sources.list
9
10apt-get update
安装vim编辑器
1apt-get install vim
安装其他的工具亦是如此!