时间:2015-01-16 17:12:00 作者:qipeng 来源:系统之家 1. 扫描二维码随时看资讯 2. 请使用手机浏览器访问: https://m.xitongzhijia.net/xtjc/20150116/35114.html 手机查看 评论 反馈
查看容器中运行的进程
root@8c342c0c275c:/# ps -aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.1 18168 1976 ? Ss 09:38 0:00 /bin/bash
root 19 0.0 0.0 15568 1144 ? R+ 09:55 0:00 ps -aux
在容器中安装一个软件包
root@8c342c0c275c:/# apt-get update && apt-get install vim
Ign https://archive.ubuntu.com trusty InRelease
Ign https://archive.ubuntu.com trusty-updates InRelease
Ign https://archive.ubuntu.com trusty-security InRelease
Hit https://archive.ubuntu.com trusty Release.gpg
Get:1 https://archive.ubuntu.com trusty-updates Release.gpg [933 B]
Get:2 https://archive.ubuntu.com trusty-security Release.gpg [933 B]
Hit https://archive.ubuntu.com trusty Release
Get:3 https://archive.ubuntu.com trusty-updates Release [62.0 kB]
Get:4 https://archive.ubuntu.com trusty-security Release [62.0 kB]
Get:5 https://archive.ubuntu.com trusty/main Sources [1335 kB]
Get:6 https://archive.ubuntu.com trusty/restricted Sources [5335 B]
Get:7 https://archive.ubuntu.com trusty/universe Sources [7926 kB]
Get:8 https://archive.ubuntu.com trusty/main amd64 Packages [1743 kB]
Get:9 https://archive.ubuntu.com trusty/restricted amd64 Packages [16.0 kB]
Get:10 https://archive.ubuntu.com trusty/universe amd64 Packages [7589 kB]
Get:11 https://archive.ubuntu.com trusty-updates/main Sources [193 kB]
Get:12 https://archive.ubuntu.com trusty-updates/restricted Sources [1874 B]
Get:13 https://archive.ubuntu.com trusty-updates/universe Sources [119 kB]
Get:14 https://archive.ubuntu.com trusty-updates/main amd64 Packages [493 kB]
Get:15 https://archive.ubuntu.com trusty-updates/restricted amd64 Packages [14.8 kB]
Get:16 https://archive.ubuntu.com trusty-updates/universe amd64 Packages [298 kB]
Get:17 https://archive.ubuntu.com trusty-security/main Sources [70.1 kB]
Get:18 https://archive.ubuntu.com trusty-security/restricted Sources [1874 B]
Get:19 https://archive.ubuntu.com trusty-security/universe Sources [19.1 kB]
Get:20 https://archive.ubuntu.com trusty-security/main amd64 Packages [229 kB]
Get:21 https://archive.ubuntu.com trusty-security/restricted amd64 Packages [14.8 kB]
Get:22 https://archive.ubuntu.com trusty-security/universe amd64 Packages [98.1 kB]
Fetched 20.3 MB in 41s (490 kB/s)
Reading package lists.。。 Done
Reading package lists.。。 Done
Building dependency tree
Reading state information.。。 Done
The following extra packages will be installed:
libgpm2 libpython2.7 libpython2.7-minimal libpython2.7-stdlib vim-runtime
Suggested packages:
gpm ctags vim-doc vim-scripts
The following NEW packages will be installed:
libgpm2 libpython2.7 libpython2.7-minimal libpython2.7-stdlib vim
vim-runtime
0 upgraded, 6 newly installed, 0 to remove and 2 not upgraded.
Need to get 9083 kB of archives.
After this operation, 42.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://archive.ubuntu.com/ubuntu/ trusty/main libgpm2 amd64 1.20.4-6.1 [16.5 kB]
Get:2 https://archive.ubuntu.com/ubuntu/ trusty/main libpython2.7-minimal amd64 2.7.6-8 [307 kB]
Get:3 https://archive.ubuntu.com/ubuntu/ trusty/main libpython2.7-stdlib amd64 2.7.6-8 [1872 kB]
Get:4 https://archive.ubuntu.com/ubuntu/ trusty/main libpython2.7 amd64 2.7.6-8 [1044 kB]
Get:5 https://archive.ubuntu.com/ubuntu/ trusty/main vim-runtime all 2:7.4.052-1ubuntu3 [4888 kB]
Get:6 https://archive.ubuntu.com/ubuntu/ trusty/main vim amd64 2:7.4.052-1ubuntu3 [956 kB]
发表评论
共0条
评论就这些咯,让大家也知道你的独特见解
立即评论以上留言仅代表用户个人观点,不代表系统之家立场