docker容器中如何安装vim


当前第2页 返回上一页

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

root@jenkins-ci-jenkins-primary-1:/# apt-get updateGet:1 http://security.debian.org stretch/updates

InRelease [94.3 kB]Ign:2 http://deb.debian.org/debian stretch InReleaseGet:3 http://deb.debian.org/debian

stretch-updates InRelease [91.0 kB]Get:4 http://deb.debian.org/debian stretch Release [118 kB]Get:5

http://security.debian.org stretch/updates/main amd64 Packages [650 kB]Get:6 http://deb.debian.org/debian

stretch-updates/main amd64 Packages [33.7 kB]Get:7 http://deb.debian.org/debian stretch Release.gpg [2410

B]Get:8 http://deb.debian.org/debian stretch/main amd64 Packages [9476 kB]Fetched 10.5 MB in 13min 51s

(12.6 kB/s)  

Reading package lists... Doneroot@jenkins-ci-jenkins-primary-1:/# apt-get upgradeReading package lists...

DoneBuilding dependency treeReading state information... DoneCalculating upgrade... DoneThe following

packages will be upgraded:  apt base-files bsdutils bzr ca-certificates ca-certificates-java curl dbus

debian-archive-keyring dirmngr dpkg e2fslibs e2fsprogs gcc-6-base git git-man gnupg  gnupg-agent gpgv

iproute2 java-common libapparmor1 libapt-pkg5.0 libatk-wrapper-java libatk-wrapper-java-jni libblkid1

libc-bin libc6 libcomerr2 libcups2  libcurl3 libcurl3-gnutls libdbus-1-3 libexpat1 libfdisk1 libfreetype6

libgcc1 libgcrypt20 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libglib2.0-0 libglib2.0-data  libgnutls30

libicu57 libidn11 liblcms2-2 libldap-2.4-2 libldap-common libmount1 libncurses5 libncursesw5 libnghttp2-14

libperl5.24 libpng16-16 libprocps6  libpython2.7-minimal libpython2.7-stdlib libsasl2-2 libsasl2-modules-db

libserf-1-1 libsmartcols1 libsoup-gnome2.4-1 libsoup2.4-1 libsqlite3-0 libss2 libssh2-1  libssl1.0.2

libssl1.1 libstdc++6 libsvn1 libsystemd0 libtasn1-6 libtiff5 libtinfo5 libudev1 libuuid1 libvorbis0a

libvorbisenc2 libwayland-client0  libwayland-cursor0 libwayland-server0 libx11-6 libx11-data libx11-dev

libx11-doc libx11-xcb1 libxcursor1 libxkbcommon0 libxml2 mount multiarch-support  ncurses-base ncurses-bin

openjdk-8-jdk openjdk-8-jdk-headless openjdk-8-jre openjdk-8-jre-headless openssh-client openssl perl

perl-base perl-modules-5.24 procps  python-bzrlib python2.7 python2.7-minimal sensible-utils

shared-mime-info subversion tzdata unzip util-linux wget113 upgraded, 0 newly installed, 0 to remove

and 0 not upgraded.Need to get 108 MB of archives.After this operation, 2933 kB of additional disk

space will be used.Do you want to continue? [Y/n]

安装vi

1

root@jenkins-ci-jenkins-primary-1:/# apt-get install vimReading package lists... DoneBuilding dependency treeReading state information... DoneThe following additional packages will be installed:  libgpm2 vim-common vim-runtime xxdSuggested packages:  gpm ctags vim-doc vim-scriptsThe following NEW packages will be installed:  libgpm2 vim vim-common vim-runtime xxd0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.Need to get 6769 kB of archives.After this operation, 31.2 MB of additional disk space will be used.Do you want to continue? [Y/n] yGet:1 http://deb.debian.org/debian stretch/main amd64 xxd amd64 2:8.0.0197-4+deb9u3 [132 kB]Get:2 http://deb.debian.org/debian stretch/main amd64 vim-common all 2:8.0.0197-4+deb9u3 [159 kB]Get:3 http://deb.debian.org/debian stretch/main amd64 libgpm2 amd64 1.20.4-6.2+b1 [34.2 kB]Get:4 http://deb.debian.org/debian stretch/main amd64 vim-runtime all 2:8.0.0197-4+deb9u3 [5409 kB]48% [4 vim-runtime 2717 kB/5409 kB 50%]

测试:

1

Vi 1.txt

J`T6WBPGA8J}Y9HJUUXMNC5.png

相关推荐:docker教程

以上就是docker容器中如何安装vim的详细内容,更多文章请关注木庄网络博客

返回前面的内容

相关阅读 >>

Docker如何杀死卡住的容器

Docker常用语句总结

远程如何登录Docker

Docker容器无法停止怎么办

linux怎么修改php文件的内容

Docker创建容器的几种办法

vim查找与替换命令是什么?

打造一款彩色vim编辑器

Docker如何自定义镜像

如何给Docker配置加速器

更多相关阅读请进入《Docker》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...