其他分享
首页 > 其他分享> > docker 容器中安装vim

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.










标签:容器,buster,kB,Get,vim,org,docker,debian
来源: https://blog.csdn.net/shi860715/article/details/110122400