docker mysql容器安装vim

1.进入 mysql 容器
主机执行

docker exec -it <mysql容器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

3安装命令
apt-get install -y vim

docker mysql容器安装vimdocker mysql容器安装vim 湖北彭于晏啊啊 发布了10 篇原创文章 · 获赞 0 · 访问量 272 私信 关注
上一篇:Dapper的新实践,Dapper.Contrib的使用与扩展


下一篇:QtWebEngine