系統(tǒng)之家 - 系統(tǒng)光盤下載網(wǎng)站!

當(dāng)前位置:系統(tǒng)之家 > 系統(tǒng)教程 > Linux中Docker容器使用

Linux中Docker容器使用實(shí)例(2)

時(shí)間:2015-01-16 17:12:00 作者:qipeng 來(lái)源:系統(tǒng)之家 1. 掃描二維碼隨時(shí)看資訊 2. 請(qǐng)使用手機(jī)瀏覽器訪問(wèn): https://m.xitongzhijia.net/xtjc/20150116/35114.html 手機(jī)查看 評(píng)論

  查看容器中運(yùn)行的進(jìn)程

  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

  在容器中安裝一個(gè)軟件包

  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]

標(biāo)簽 Docker

發(fā)表評(píng)論

0

沒有更多評(píng)論了

評(píng)論就這些咯,讓大家也知道你的獨(dú)特見解

立即評(píng)論

以上留言僅代表用戶個(gè)人觀點(diǎn),不代表系統(tǒng)之家立場(chǎng)

其他版本軟件

熱門教程

人氣教程排行

Linux系統(tǒng)推薦

官方交流群 軟件收錄