0%

MySQL的docker容器中安装vim

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

先进入MySQL容器:

1
docker exec -it <mysql容器id> bash

配置网易的镜像源

1
2
3
4
5
6
7
8
9
10
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编辑器

1
apt-get install vim

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

  • 本文作者: Tim
  • 本文链接: https://zouchanglin.cn/2922282206.html
  • 版权声明: 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!