docker 容器中安装vim

在docker容器中想要编辑配置文件,可是悲剧的我发现容器中并没有提供文档编辑工具。
但是我们却可以自己装。
root@67a848f84101:/# apt-get update
root@67a848f84101:/# apt-get install vim

root@67a848f84101:/# apt-get update
Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:2 http://security.debian.org/debian-security buster/updates/main amd64 Packages [251 kB]
Get:3 http://deb.debian.org/debian buster InRelease [121 kB]
Get:4 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Get:5 http://deb.debian.org/debian buster/main amd64 Packages [7906 kB]
Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [7856 B]                                                                                         
Fetched 5117 kB in 2min 2s (42.0 kB/s)                                                                                                                                 
Reading package lists... Done
root@67a848f84101:/# apt-get install vim
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libgpm2 vim-common vim-runtime xxd
Suggested packages:
  gpm ctags vim-doc vim-scripts
The following NEW packages will be installed:
  libgpm2 vim vim-common vim-runtime xxd
0 upgraded, 5 newly installed, 0 to remove and 4 not upgraded.
Need to get 7425 kB of archives.
After this operation, 33.8 MB of additional disk space will be used.










上一篇:KAL1 LINUX 官方文档之政策---Kali Linux更新政策


下一篇:SUSE12SP3-Mycat(4)rule.xml配置详解