Centos7.0-安装docker

前端之家收集整理的这篇文章主要介绍了Centos7.0-安装docker前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

结论一:docker隔离性验证:在docker中运行的java为1.8,;主机中安装的java为1.7

[root@b6fb72b3a8bc /]# java -version

openjdk version "1.8.0_91"

OpenJDK Runtime Environment (build 1.8.0_91-b14)

OpenJDK 64-Bit Server VM (build 25.91-b14,mixed mode)

[root@b6fb72b3a8bc /]# exit

exit

[root@localhost ~]#

[root@localhost ~]# java -version

java version "1.7.0_51"

OpenJDK Runtime Environment (rhel-2.4.5.5.el7-x86_64 u51-b31)

OpenJDK 64-Bit Server VM (build 24.51-b03,mixed mode)

[root@localhost ~]#

结论二:docker镜像虚拟占用空间更小:docker中创建一个centos操作系统仅需要占用196.7MB的磁盘空间

[root@localhost ~]# docker images

REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE

docker.io/centos latest 8c59c0a396b7 7 days ago 196.7 MB

结论三:cpu消耗率:在主机中运行一个centos后,cpu利用百分比并无

[root@localhost ~]# top

top - 09:17:34 up 58 min,3 users,load average: 0.00,0.01,0.05

Tasks: 392 total,3 running,389 sleeping,0 stopped,0 zombie

%cpu(s): 0.6 us,0.3 sy,0.0 ni,99.0 id,0.0 wa,0.0 hi,0.3 si,0.0 st

KiB Mem: 1870764 total,1142812 used,727952 free,1476 buffers

KiB Swap: 2662396 total,0 used,2662396 free. 775008 cached Mem

PID USER PR NI VIRT RES SHR S %cpu %MEM TIME+ COMMAND

1607 root 20 0 566136 31980 13412 S 0.3 1.7 0:12.27 docker-current

3817 root 20 0 123792 1828 1156 R 0.3 0.1 0:00.04 top

1 root 20 0 125816 6544 3924 S 0.0 0.3 0:01.76 systemd

2 root 20 0 0 0 0 S 0.0 0.0 0:00.01 kthreadd

3 root 20 0 0 0 0 S 0.0 0.0 0:00.75 ksoftirqd/0

5 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H

7 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migration/0

8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh

9 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/0

10 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/1

11 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/2

12 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcuob/3

[root@localhost ~]#

[root@b6fb72b3a8bc /]# top

top - 01:20:02 up 1:01,0 users,0.05

Tasks: 2 total,1 running,1 sleeping,0 zombie

%cpu(s): 0.2 us,1.6 sy,97.4 id,0.0 si,0.0 st

KiB Mem : 1870764 total,717760 free,248352 used,904652 buff/cache

KiB Swap: 2662396 total,2662396 free,0 used. 1405312 avail Mem

PID USER PR NI VIRT RES SHR S %cpu %MEM TIME+ COMMAND

1 root 20 0 11776 1872 1492 S 0.0 0.1 0:00.03 bash

14 root 20 0 51744 1880 1400 R 0.0 0.1 0:00.01 top

缺点:

1、只支持64位的系统平台

附:docker装配记录

[root@localhost ~]#

[root@localhost ~]# uname -a

Linux localhost.localdomain 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

[root@localhost ~]#

[root@localhost ~]# cat /etc/redhat-release

CentOS Linux release 7.0.1406 (Core)

[root@localhost ~]#

[root@localhost ~]# pwd

/root

[root@localhost ~]# sudo yum install docker-io

已加载插件:fastestmirror,langpacks

Loading mirror speeds from cached hostfile

* base: centos.ustc.edu.cn

* extras: centos.ustc.edu.cn

* updates: centos.ustc.edu.cn

正在解决依赖关系

--> 正在检查事务

---> 软件包 docker.x86_64.0.1.9.1-40.el7.centos 将被 安装

--> 正在处理依赖关系 docker-forward-journald = 1.9.1-40.el7.centos,它被软件包 docker-1.9.1-40.el7.centos.x86_64 需要

--> 正在处理依赖关系 docker-common = 1.9.1-40.el7.centos,它被软件包 docker-1.9.1-40.el7.centos.x86_64 需要

--> 正在处理依赖关系 selinux-policy >= 3.13.1-23,它被软件包 docker-1.9.1-40.el7.centos.x86_64 需要

--> 正在处理依赖关系 docker-selinux >= 1.9.1-40.el7.centos,它被软件包 docker-1.9.1-40.el7.centos.x86_64 需要

--> 正在处理依赖关系 device-mapper-libs >= 7:1.02.97,它被软件包 docker-1.9.1-40.el7.centos.x86_64 需要

--> 正在处理依赖关系 libsystemd.so.0(LIBSYSTEMD_209)(64bit),它被软件包 docker-1.9.1-40.el7.centos.x86_64 需要

--> 正在处理依赖关系 libdevmapper.so.1.02(DM_1_02_97)(64bit),它被软件包 docker-1.9.1-40.el7.centos.x86_64 需要

--> 正在处理依赖关系 libsystemd.so.0()(64bit),它被软件包 docker-1.9.1-40.el7.centos.x86_64 需要

--> 正在检查事务

---> 软件包 device-mapper-libs.x86_64.7.1.02.84-14.el7 将被 升级

--> 正在处理依赖关系 device-mapper-libs = 7:1.02.84-14.el7,它被软件包 7:device-mapper-1.02.84-14.el7.x86_64 需要

---> 软件包 device-mapper-libs.x86_64.7.1.02.107-5.el7_2.2 将被 更新

---> 软件包 docker-common.x86_64.0.1.9.1-40.el7.centos 将被 安装

---> 软件包 docker-forward-journald.x86_64.0.1.9.1-40.el7.centos 将被 安装

---> 软件包 docker-selinux.x86_64.0.1.9.1-40.el7.centos 将被 安装

--> 正在处理依赖关系 selinux-policy-targeted >= 3.13.1-23,它被软件包 docker-selinux-1.9.1-40.el7.centos.x86_64 需要

--> 正在处理依赖关系 selinux-policy-base >= 3.13.1-23,它被软件包 docker-selinux-1.9.1-40.el7.centos.x86_64 需要

---> 软件包 selinux-policy.noarch.0.3.12.1-153.el7 将被 升级

---> 软件包 selinux-policy.noarch.0.3.13.1-60.el7_2.3 将被 更新

---> 软件包 systemd-libs.x86_64.0.208-11.el7 将被 升级

--> 正在处理依赖关系 systemd-libs = 208-11.el7,它被软件包 systemd-208-11.el7.x86_64 需要

---> 软件包 systemd-libs.x86_64.0.219-19.el7_2.9 将被 更新

--> 正在检查事务

---> 软件包 device-mapper.x86_64.7.1.02.84-14.el7 将被 升级

--> 正在处理依赖关系 device-mapper = 7:1.02.84-14.el7,它被软件包 7:device-mapper-event-1.02.84-14.el7.x86_64 需要

---> 软件包 device-mapper.x86_64.7.1.02.107-5.el7_2.2 将被 更新

---> 软件包 selinux-policy-targeted.noarch.0.3.12.1-153.el7 将被 升级

---> 软件包 selinux-policy-targeted.noarch.0.3.13.1-60.el7_2.3 将被 更新

---> 软件包 systemd.x86_64.0.208-11.el7 将被 升级

--> 正在处理依赖关系 systemd = 208-11.el7,它被软件包 systemd-sysv-208-11.el7.x86_64 需要

--> 正在处理依赖关系 systemd = 208-11.el7,它被软件包 systemd-python-208-11.el7.x86_64 需要

--> 正在处理依赖关系 systemd = 208-11.el7,它被软件包 libgudev1-208-11.el7.x86_64 需要

---> 软件包 systemd.x86_64.0.219-19.el7_2.9 将被 更新

--> 正在处理依赖关系 kmod >= 18-4,它被软件包 systemd-219-19.el7_2.9.x86_64 需要

--> 正在检查事务

---> 软件包 device-mapper-event.x86_64.7.1.02.84-14.el7 将被 升级

---> 软件包 device-mapper-event.x86_64.7.1.02.107-5.el7_2.2 将被 更新

--> 正在处理依赖关系 device-mapper-event-libs = 7:1.02.107-5.el7_2.2,它被软件包 7:device-mapper-event-1.02.107-5.el7_2.2.x86_64 需要

---> 软件包 kmod.x86_64.0.14-9.el7 将被 升级

---> 软件包 kmod.x86_64.0.20-5.el7 将被 更新

---> 软件包 libgudev1.x86_64.0.208-11.el7 将被 升级

---> 软件包 libgudev1.x86_64.0.219-19.el7_2.9 将被 更新

---> 软件包 systemd-python.x86_64.0.208-11.el7 将被 升级

---> 软件包 systemd-python.x86_64.0.219-19.el7_2.9 将被 更新

---> 软件包 systemd-sysv.x86_64.0.208-11.el7 将被 升级

---> 软件包 systemd-sysv.x86_64.0.219-19.el7_2.9 将被 更新

--> 正在检查事务

---> 软件包 device-mapper-event-libs.x86_64.7.1.02.84-14.el7 将被 升级

---> 软件包 device-mapper-event-libs.x86_64.7.1.02.107-5.el7_2.2 将被 更新

--> 处理 systemd-219-19.el7_2.9.x86_64 与 initscripts < 9.49.28-1 的冲突

--> 正在使用新的信息重新解决依赖关系

--> 正在检查事务

---> 软件包 initscripts.x86_64.0.9.49.17-1.el7 将被 升级

---> 软件包 initscripts.x86_64.0.9.49.30-1.el7_2.2 将被 更新

--> 处理 systemd-219-19.el7_2.9.x86_64 与 dracut < 033-243 的冲突

--> 正在使用新的信息重新解决依赖关系

--> 正在检查事务

---> 软件包 dracut.x86_64.0.033-161.el7 将被 升级

--> 正在处理依赖关系 dracut = 033-161.el7,它被软件包 dracut-config-rescue-033-161.el7.x86_64 需要

--> 正在处理依赖关系 dracut = 033-161.el7,它被软件包 dracut-network-033-161.el7.x86_64 需要

---> 软件包 dracut.x86_64.0.033-360.el7_2 将被 更新

--> 正在检查事务

---> 软件包 dracut-config-rescue.x86_64.0.033-161.el7 将被 升级

---> 软件包 dracut-config-rescue.x86_64.0.033-360.el7_2 将被 更新

---> 软件包 dracut-network.x86_64.0.033-161.el7 将被 升级

---> 软件包 dracut-network.x86_64.0.033-360.el7_2 将被 更新

--> 解决依赖关系完成

依赖关系解决

===============================================================================

Package 架构 版本 源 大小

===============================================================================

正在安装:

docker x86_64 1.9.1-40.el7.centos extras 7.8 M

正在更新:

dracut x86_64 033-360.el7_2 updates 311 k

initscripts x86_64 9.49.30-1.el7_2.2 updates 429 k

为依赖而安装:

docker-common x86_64 1.9.1-40.el7.centos extras 55 k

docker-forward-journald x86_64 1.9.1-40.el7.centos extras 827 k

docker-selinux x86_64 1.9.1-40.el7.centos extras 73 k

为依赖而更新:

device-mapper x86_64 7:1.02.107-5.el7_2.2 updates 252 k

device-mapper-event x86_64 7:1.02.107-5.el7_2.2 updates 167 k

device-mapper-event-libs x86_64 7:1.02.107-5.el7_2.2 updates 169 k

device-mapper-libs x86_64 7:1.02.107-5.el7_2.2 updates 305 k

dracut-config-rescue x86_64 033-360.el7_2 updates 49 k

dracut-network x86_64 033-360.el7_2 updates 90 k

kmod x86_64 20-5.el7 base 114 k

libgudev1 x86_64 219-19.el7_2.9 updates 66 k

selinux-policy noarch 3.13.1-60.el7_2.3 updates 375 k

selinux-policy-targeted noarch 3.13.1-60.el7_2.3 updates 3.9 M

systemd x86_64 219-19.el7_2.9 updates 5.1 M

systemd-libs x86_64 219-19.el7_2.9 updates 358 k

systemd-python x86_64 219-19.el7_2.9 updates 99 k

systemd-sysv x86_64 219-19.el7_2.9 updates 53 k

事务概要

===============================================================================

安装 1 软件包 (+ 3 依赖软件包)

升级 2 软件包 (+14 依赖软件包)

总计:21 M

总下载量:8.8 M

Is this ok [y/d/N]: y

Downloading packages:

(1/4): docker-selinux-1.9.1-40.el7.centos.x86_64.rpm | 73 kB 00:00

(2/4): docker-common-1.9.1-40.el7.centos.x86_64.rpm | 55 kB 00:02

(3/4): docker-forward-journald-1.9.1-40.el7.centos.x86_64 | 827 kB 00:06

(4/4): docker-1.9.1-40.el7.centos.x86_64.rpm | 7.8 MB 04:21

-------------------------------------------------------------------------------

总计 34 kB/s | 8.8 MB 04:21

Running transaction check

Running transaction test

Transaction check error:

file /usr/lib/systemd/system/blk-availability.service from install of device-mapper-7:1.02.107-5.el7_2.2.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64

file /usr/sbin/blkdeactivate from install of device-mapper-7:1.02.107-5.el7_2.2.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64

file /usr/share/man/man8/blkdeactivate.8.gz from install of device-mapper-7:1.02.107-5.el7_2.2.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64

错误概要

-------------

[root@localhost ~]# yum install lvm2

已加载插件:fastestmirror,langpacks

Loading mirror speeds from cached hostfile

* base: centos.ustc.edu.cn

* extras: centos.ustc.edu.cn

* updates: centos.ustc.edu.cn

正在解决依赖关系

--> 正在检查事务

---> 软件包 lvm2.x86_64.7.2.02.105-14.el7 将被 升级

---> 软件包 lvm2.x86_64.7.2.02.130-5.el7_2.2 将被 更新

--> 正在处理依赖关系 lvm2-libs = 7:2.02.130-5.el7_2.2,它被软件包 7:lvm2-2.02.130-5.el7_2.2.x86_64 需要

--> 正在处理依赖关系 device-mapper-persistent-data >= 0.5.5-1,它被软件包 7:lvm2-2.02.130-5.el7_2.2.x86_64 需要

--> 正在处理依赖关系 libdevmapper.so.1.02(DM_1_02_97)(64bit),它被软件包 7:lvm2-2.02.130-5.el7_2.2.x86_64 需要

--> 正在处理依赖关系 libdevmapper.so.1.02(DM_1_02_107)(64bit),它被软件包 7:lvm2-2.02.130-5.el7_2.2.x86_64 需要

--> 正在处理依赖关系 libdevmapper.so.1.02(DM_1_02_104)(64bit),它被软件包 7:lvm2-2.02.130-5.el7_2.2.x86_64 需要

--> 正在处理依赖关系 libdevmapper.so.1.02(DM_1_02_103)(64bit),它被软件包 7:lvm2-2.02.130-5.el7_2.2.x86_64 需要

--> 正在处理依赖关系 libdevmapper.so.1.02(DM_1_02_101)(64bit),它被软件包 7:lvm2-2.02.130-5.el7_2.2.x86_64 需要

--> 正在处理依赖关系 libdevmapper.so.1.02(DM_1_02_100)(64bit),它被软件包 7:lvm2-2.02.130-5.el7_2.2.x86_64 需要

--> 正在检查事务

---> 软件包 device-mapper-libs.x86_64.7.1.02.84-14.el7 将被 升级

--> 正在处理依赖关系 device-mapper-libs = 7:1.02.84-14.el7,它被软件包 7:device-mapper-1.02.84-14.el7.x86_64 需要

---> 软件包 device-mapper-libs.x86_64.7.1.02.107-5.el7_2.2 将被 更新

---> 软件包 device-mapper-persistent-data.x86_64.0.0.3.2-1.el7 将被 升级

---> 软件包 device-mapper-persistent-data.x86_64.0.0.5.5-1.el7 将被 更新

---> 软件包 lvm2-libs.x86_64.7.2.02.105-14.el7 将被 升级

---> 软件包 lvm2-libs.x86_64.7.2.02.130-5.el7_2.2 将被 更新

--> 正在处理依赖关系 device-mapper-event = 7:1.02.107-5.el7_2.2,它被软件包 7:lvm2-libs-2.02.130-5.el7_2.2.x86_64 需要

--> 正在检查事务

---> 软件包 device-mapper.x86_64.7.1.02.84-14.el7 将被 升级

---> 软件包 device-mapper.x86_64.7.1.02.107-5.el7_2.2 将被 更新

---> 软件包 device-mapper-event.x86_64.7.1.02.84-14.el7 将被 升级

---> 软件包 device-mapper-event.x86_64.7.1.02.107-5.el7_2.2 将被 更新

--> 正在处理依赖关系 device-mapper-event-libs = 7:1.02.107-5.el7_2.2,它被软件包 7:device-mapper-event-1.02.107-5.el7_2.2.x86_64 需要

--> 正在检查事务

---> 软件包 device-mapper-event-libs.x86_64.7.1.02.84-14.el7 将被 升级

---> 软件包 device-mapper-event-libs.x86_64.7.1.02.107-5.el7_2.2 将被 更新

--> 解决依赖关系完成

依赖关系解决

===============================================================================

Package 架构 版本 源 大小

===============================================================================

正在更新:

lvm2 x86_64 7:2.02.130-5.el7_2.2 updates 1.0 M

为依赖而更新:

device-mapper x86_64 7:1.02.107-5.el7_2.2 updates 252 k

device-mapper-event x86_64 7:1.02.107-5.el7_2.2 updates 167 k

device-mapper-event-libs x86_64 7:1.02.107-5.el7_2.2 updates 169 k

device-mapper-libs x86_64 7:1.02.107-5.el7_2.2 updates 305 k

device-mapper-persistent-data x86_64 0.5.5-1.el7 base 350 k

lvm2-libs x86_64 7:2.02.130-5.el7_2.2 updates 872 k

事务概要

===============================================================================

升级 1 软件包 (+6 依赖软件包)

总计:3.0 M

Is this ok [y/d/N]: y

Downloading packages:

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

正在更新 : 7:device-mapper-1.02.107-5.el7_2.2.x86_64 1/14

正在更新 : 7:device-mapper-libs-1.02.107-5.el7_2.2.x86_64 2/14

正在更新 : 7:device-mapper-event-libs-1.02.107-5.el7_2.2.x86_64 3/14

正在更新 : 7:device-mapper-event-1.02.107-5.el7_2.2.x86_64 4/14

正在更新 : 7:lvm2-libs-2.02.130-5.el7_2.2.x86_64 5/14

正在更新 : device-mapper-persistent-data-0.5.5-1.el7.x86_64 6/14

正在更新 : 7:lvm2-2.02.130-5.el7_2.2.x86_64 7/14

ln -s '/usr/lib/systemd/system/lvm2-lvMetad.socket' '/etc/systemd/system/sysinit.target.wants/lvm2-lvMetad.socket'

ln -s '/usr/lib/systemd/system/lvm2-lvmpolld.socket' '/etc/systemd/system/sysinit.target.wants/lvm2-lvmpolld.socket'

清理 : 7:lvm2-2.02.105-14.el7.x86_64 8/14

清理 : 7:lvm2-libs-2.02.105-14.el7.x86_64 9/14

清理 : 7:device-mapper-event-1.02.84-14.el7.x86_64 10/14

清理 : 7:device-mapper-event-libs-1.02.84-14.el7.x86_64 11/14

清理 : 7:device-mapper-1.02.84-14.el7.x86_64 12/14

清理 : 7:device-mapper-libs-1.02.84-14.el7.x86_64 13/14

清理 : device-mapper-persistent-data-0.3.2-1.el7.x86_64 14/14

验证中 : 7:device-mapper-libs-1.02.107-5.el7_2.2.x86_64 1/14

验证中 : 7:device-mapper-event-libs-1.02.107-5.el7_2.2.x86_64 2/14

验证中 : device-mapper-persistent-data-0.5.5-1.el7.x86_64 3/14

验证中 : 7:device-mapper-event-1.02.107-5.el7_2.2.x86_64 4/14

验证中 : 7:lvm2-libs-2.02.130-5.el7_2.2.x86_64 5/14

验证中 : 7:lvm2-2.02.130-5.el7_2.2.x86_64 6/14

验证中 : 7:device-mapper-1.02.107-5.el7_2.2.x86_64 7/14

验证中 : 7:lvm2-2.02.105-14.el7.x86_64 8/14

验证中 : device-mapper-persistent-data-0.3.2-1.el7.x86_64 9/14

验证中 : 7:device-mapper-event-1.02.84-14.el7.x86_64 10/14

验证中 : 7:device-mapper-libs-1.02.84-14.el7.x86_64 11/14

验证中 : 7:lvm2-libs-2.02.105-14.el7.x86_64 12/14

验证中 : 7:device-mapper-event-libs-1.02.84-14.el7.x86_64 13/14

验证中 : 7:device-mapper-1.02.84-14.el7.x86_64 14/14

更新完毕:

lvm2.x86_64 7:2.02.130-5.el7_2.2

作为依赖被升级:

device-mapper.x86_64 7:1.02.107-5.el7_2.2

device-mapper-event.x86_64 7:1.02.107-5.el7_2.2

device-mapper-event-libs.x86_64 7:1.02.107-5.el7_2.2

device-mapper-libs.x86_64 7:1.02.107-5.el7_2.2

device-mapper-persistent-data.x86_64 0:0.5.5-1.el7

lvm2-libs.x86_64 7:2.02.130-5.el7_2.2

完毕!

[root@localhost ~]# sudo yum install docker-io

已加载插件:fastestmirror,langpacks

Loading mirror speeds from cached hostfile

* base: centos.ustc.edu.cn

* extras: centos.ustc.edu.cn

* updates: centos.ustc.edu.cn

正在解决依赖关系

--> 正在检查事务

---> 软件包 docker.x86_64.0.1.9.1-40.el7.centos 将被 安装

--> 正在处理依赖关系 docker-forward-journald = 1.9.1-40.el7.centos,它被软件包 docker-1.9.1-40.el7.centos.x86_64 需要

--> 正在处理依赖关系 docker-common = 1.9.1-40.el7.centos,它被软件包 docker-1.9.1-40.el7.centos.x86_64 需要

--> 正在处理依赖关系 selinux-policy >= 3.13.1-23,它被软件包 docker-1.9.1-40.el7.centos.x86_64 需要

--> 正在处理依赖关系 docker-selinux >= 1.9.1-40.el7.centos,它被软件包 docker-1.9.1-40.el7.centos.x86_64 需要

--> 正在处理依赖关系 libsystemd.so.0(LIBSYSTEMD_209)(64bit),它被软件包 docker-1.9.1-40.el7.centos.x86_64 需要

--> 正在处理依赖关系 libsystemd.so.0()(64bit),它被软件包 docker-1.9.1-40.el7.centos.x86_64 需要

--> 正在检查事务

---> 软件包 docker-common.x86_64.0.1.9.1-40.el7.centos 将被 安装

---> 软件包 docker-forward-journald.x86_64.0.1.9.1-40.el7.centos 将被 安装

---> 软件包 docker-selinux.x86_64.0.1.9.1-40.el7.centos 将被 安装

--> 正在处理依赖关系 selinux-policy-targeted >= 3.13.1-23,它被软件包 docker-selinux-1.9.1-40.el7.centos.x86_64 需要

--> 正在处理依赖关系 selinux-policy-base >= 3.13.1-23,它被软件包 docker-selinux-1.9.1-40.el7.centos.x86_64 需要

---> 软件包 selinux-policy.noarch.0.3.12.1-153.el7 将被 升级

---> 软件包 selinux-policy.noarch.0.3.13.1-60.el7_2.3 将被 更新

---> 软件包 systemd-libs.x86_64.0.208-11.el7 将被 升级

--> 正在处理依赖关系 systemd-libs = 208-11.el7,它被软件包 systemd-208-11.el7.x86_64 需要

---> 软件包 systemd-libs.x86_64.0.219-19.el7_2.9 将被 更新

--> 正在检查事务

---> 软件包 selinux-policy-targeted.noarch.0.3.12.1-153.el7 将被 升级

---> 软件包 selinux-policy-targeted.noarch.0.3.13.1-60.el7_2.3 将被 更新

---> 软件包 systemd.x86_64.0.208-11.el7 将被 升级

--> 正在处理依赖关系 systemd = 208-11.el7,它被软件包 systemd-python-208-11.el7.x86_64 需要

--> 正在处理依赖关系 systemd = 208-11.el7,它被软件包 libgudev1-208-11.el7.x86_64 需要

--> 正在处理依赖关系 systemd = 208-11.el7,它被软件包 systemd-sysv-208-11.el7.x86_64 需要

---> 软件包 systemd.x86_64.0.219-19.el7_2.9 将被 更新

--> 正在处理依赖关系 kmod >= 18-4,它被软件包 systemd-219-19.el7_2.9.x86_64 需要

--> 正在检查事务

---> 软件包 kmod.x86_64.0.14-9.el7 将被 升级

---> 软件包 kmod.x86_64.0.20-5.el7 将被 更新

---> 软件包 libgudev1.x86_64.0.208-11.el7 将被 升级

---> 软件包 libgudev1.x86_64.0.219-19.el7_2.9 将被 更新

---> 软件包 systemd-python.x86_64.0.208-11.el7 将被 升级

---> 软件包 systemd-python.x86_64.0.219-19.el7_2.9 将被 更新

---> 软件包 systemd-sysv.x86_64.0.208-11.el7 将被 升级

---> 软件包 systemd-sysv.x86_64.0.219-19.el7_2.9 将被 更新

--> 处理 systemd-219-19.el7_2.9.x86_64 与 initscripts < 9.49.28-1 的冲突

--> 正在使用新的信息重新解决依赖关系

--> 正在检查事务

---> 软件包 initscripts.x86_64.0.9.49.17-1.el7 将被 升级

---> 软件包 initscripts.x86_64.0.9.49.30-1.el7_2.2 将被 更新

--> 处理 systemd-219-19.el7_2.9.x86_64 与 dracut < 033-243 的冲突

--> 正在使用新的信息重新解决依赖关系

--> 正在检查事务

---> 软件包 dracut.x86_64.0.033-161.el7 将被 升级

--> 正在处理依赖关系 dracut = 033-161.el7,它被软件包 dracut-config-rescue-033-161.el7.x86_64 需要

--> 正在处理依赖关系 dracut = 033-161.el7,它被软件包 dracut-network-033-161.el7.x86_64 需要

---> 软件包 dracut.x86_64.0.033-360.el7_2 将被 更新

--> 正在检查事务

---> 软件包 dracut-config-rescue.x86_64.0.033-161.el7 将被 升级

---> 软件包 dracut-config-rescue.x86_64.0.033-360.el7_2 将被 更新

---> 软件包 dracut-network.x86_64.0.033-161.el7 将被 升级

---> 软件包 dracut-network.x86_64.0.033-360.el7_2 将被 更新

--> 解决依赖关系完成

依赖关系解决

===============================================================================

Package 架构 版本 源 大小

===============================================================================

正在安装:

docker x86_64 1.9.1-40.el7.centos extras 7.8 M

正在更新:

dracut x86_64 033-360.el7_2 updates 311 k

initscripts x86_64 9.49.30-1.el7_2.2 updates 429 k

为依赖而安装:

docker-common x86_64 1.9.1-40.el7.centos extras 55 k

docker-forward-journald x86_64 1.9.1-40.el7.centos extras 827 k

docker-selinux x86_64 1.9.1-40.el7.centos extras 73 k

为依赖而更新:

dracut-config-rescue x86_64 033-360.el7_2 updates 49 k

dracut-network x86_64 033-360.el7_2 updates 90 k

kmod x86_64 20-5.el7 base 114 k

libgudev1 x86_64 219-19.el7_2.9 updates 66 k

selinux-policy noarch 3.13.1-60.el7_2.3 updates 375 k

selinux-policy-targeted noarch 3.13.1-60.el7_2.3 updates 3.9 M

systemd x86_64 219-19.el7_2.9 updates 5.1 M

systemd-libs x86_64 219-19.el7_2.9 updates 358 k

systemd-python x86_64 219-19.el7_2.9 updates 99 k

systemd-sysv x86_64 219-19.el7_2.9 updates 53 k

事务概要

===============================================================================

安装 1 软件包 (+ 3 依赖软件包)

升级 2 软件包 (+10 依赖软件包)

总计:20 M

Is this ok [y/d/N]: y

Downloading packages:

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

正在更新 : systemd-libs-219-19.el7_2.9.x86_64 1/28

正在更新 : dracut-033-360.el7_2.x86_64 2/28

正在更新 : kmod-20-5.el7.x86_64 3/28

正在更新 : systemd-219-19.el7_2.9.x86_64 4/28

正在更新 : selinux-policy-3.13.1-60.el7_2.3.noarch 5/28

正在更新 : selinux-policy-targeted-3.13.1-60.el7_2.3.noarch 6/28

146k

正在安装 : docker-selinux-1.9.1-40.el7.centos.x86_64 7/28

正在安装 : docker-forward-journald-1.9.1-40.el7.centos.x86_64 8/28

正在安装 : docker-common-1.9.1-40.el7.centos.x86_64 9/28

正在安装 : docker-1.9.1-40.el7.centos.x86_64 10/28

正在更新 : initscripts-9.49.30-1.el7_2.2.x86_64 11/28

正在更新 : systemd-python-219-19.el7_2.9.x86_64 12/28

正在更新 : systemd-sysv-219-19.el7_2.9.x86_64 13/28

正在更新 : dracut-config-rescue-033-360.el7_2.x86_64 14/28

正在更新 : dracut-network-033-360.el7_2.x86_64 15/28

正在更新 : libgudev1-219-19.el7_2.9.x86_64 16/28

清理 : libgudev1-208-11.el7.x86_64 17/28

清理 : systemd-python-208-11.el7.x86_64 18/28

清理 : initscripts-9.49.17-1.el7.x86_64 19/28

清理 : systemd-sysv-208-11.el7.x86_64 20/28

清理 : dracut-network-033-161.el7.x86_64 21/28

清理 : dracut-config-rescue-033-161.el7.x86_64 22/28

清理 : selinux-policy-targeted-3.12.1-153.el7.noarch 23/28

warning: file /etc/selinux/targeted/modules/active/modules/vbetool.pp: remove Failed: No such file or directory

warning: file /etc/selinux/targeted/modules/active/modules/pkcsslotd.pp: remove Failed: No such file or directory

清理 : dracut-033-161.el7.x86_64 24/28

清理 : selinux-policy-3.12.1-153.el7.noarch 25/28

清理 : systemd-208-11.el7.x86_64 26/28

清理 : kmod-14-9.el7.x86_64 27/28

清理 : systemd-libs-208-11.el7.x86_64 28/28

验证中 : initscripts-9.49.30-1.el7_2.2.x86_64 1/28

验证中 : docker-common-1.9.1-40.el7.centos.x86_64 2/28

验证中 : selinux-policy-targeted-3.13.1-60.el7_2.3.noarch 3/28

验证中 : kmod-20-5.el7.x86_64 4/28

验证中 : systemd-python-219-19.el7_2.9.x86_64 5/28

验证中 : docker-forward-journald-1.9.1-40.el7.centos.x86_64 6/28

验证中 : dracut-config-rescue-033-360.el7_2.x86_64 7/28

验证中 : docker-1.9.1-40.el7.centos.x86_64 8/28

验证中 : selinux-policy-3.13.1-60.el7_2.3.noarch 9/28

验证中 : dracut-network-033-360.el7_2.x86_64 10/28

验证中 : dracut-033-360.el7_2.x86_64 11/28

验证中 : systemd-sysv-219-19.el7_2.9.x86_64 12/28

验证中 : docker-selinux-1.9.1-40.el7.centos.x86_64 13/28

验证中 : libgudev1-219-19.el7_2.9.x86_64 14/28

验证中 : systemd-219-19.el7_2.9.x86_64 15/28

验证中 : systemd-libs-219-19.el7_2.9.x86_64 16/28

验证中 : dracut-config-rescue-033-161.el7.x86_64 17/28

验证中 : kmod-14-9.el7.x86_64 18/28

验证中 : systemd-python-208-11.el7.x86_64 19/28

验证中 : selinux-policy-3.12.1-153.el7.noarch 20/28

验证中 : dracut-network-033-161.el7.x86_64 21/28

验证中 : dracut-033-161.el7.x86_64 22/28

验证中 : initscripts-9.49.17-1.el7.x86_64 23/28

验证中 : systemd-libs-208-11.el7.x86_64 24/28

验证中 : systemd-208-11.el7.x86_64 25/28

验证中 : selinux-policy-targeted-3.12.1-153.el7.noarch 26/28

验证中 : systemd-sysv-208-11.el7.x86_64 27/28

验证中 : libgudev1-208-11.el7.x86_64 28/28

已安装:

docker.x86_64 0:1.9.1-40.el7.centos

作为依赖被安装:

docker-common.x86_64 0:1.9.1-40.el7.centos

docker-forward-journald.x86_64 0:1.9.1-40.el7.centos

docker-selinux.x86_64 0:1.9.1-40.el7.centos

更新完毕:

dracut.x86_64 0:033-360.el7_2 initscripts.x86_64 0:9.49.30-1.el7_2.2

作为依赖被升级:

dracut-config-rescue.x86_64 0:033-360.el7_2

dracut-network.x86_64 0:033-360.el7_2

kmod.x86_64 0:20-5.el7

libgudev1.x86_64 0:219-19.el7_2.9

selinux-policy.noarch 0:3.13.1-60.el7_2.3

selinux-policy-targeted.noarch 0:3.13.1-60.el7_2.3

systemd.x86_64 0:219-19.el7_2.9

systemd-libs.x86_64 0:219-19.el7_2.9

systemd-python.x86_64 0:219-19.el7_2.9

systemd-sysv.x86_64 0:219-19.el7_2.9

完毕!

[root@localhost ~]# sudo service docker start

Redirecting to /bin/systemctl start docker.service

[root@localhost ~]# /bin/systemctl start docker.service

[root@localhost ~]# sudo chkconfig docker on

注意:正在将请求转发到“systemctl enable docker.service”。

Created symlink from /etc/systemd/system/multi-user.target.wants/docker.service to /usr/lib/systemd/system/docker.service.

[root@localhost ~]# groupadd docker

[root@localhost ~]# sudo usermod -a -G docker $USER

[root@localhost ~]# docker images

REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE

[root@localhost ~]# docker version

Client:

Version: 1.9.1

API version: 1.21

Package version: docker-common-1.9.1-40.el7.centos.x86_64

Go version: go1.4.2

Git commit: ab77bde/1.9.1

Built:

OS/Arch: linux/amd64

Server:

Version: 1.9.1

API version: 1.21

Package version: docker-common-1.9.1-40.el7.centos.x86_64

Go version: go1.4.2

Git commit: ab77bde/1.9.1

Built:

OS/Arch: linux/amd64

[root@localhost ~]#

[root@localhost ~]# docker pull centos

Using default tag: latest

Trying to pull repository docker.io/library/centos ... latest: Pulling from library/centos

7f88adccab28: Pull complete

ff639d82eec4: Pull complete

8c59c0a396b7: Pull complete

Digest: sha256:039c32c0924e4f5da9c4952a86929fe00e10c9473c3948335ff13d00550993dd

Status: Downloaded newer image for docker.io/centos:latest

[root@localhost ~]# docker ps -a

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS

[root@localhost ~]# docker images

REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE

docker.io/centos latest 8c59c0a396b7 7 days ago 196.7 MB

[root@localhost ~]# docker run -t -i centos /bin/bash

Usage of loopback devices is strongly discouraged for production use. Either use `--storage-opt dm.thinpooldev` or use `--storage-opt dm.no_warn_on_loop_devices=true` to suppress this warning.

[root@b6fb72b3a8bc /]# exit

exit

[root@localhost ~]# docker ps -a

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

b6fb72b3a8bc centos "/bin/bash" About a minute ago Exited (127) 10 seconds ago gloomy_meninsky

[root@localhost ~]# docker start b6fb72b3a8bc

b6fb72b3a8bc

[root@localhost ~]# docker attach b6fb72b3a8bc

[root@b6fb72b3a8bc /]#

[root@b6fb72b3a8bc /]#

[root@b6fb72b3a8bc /]#

[root@b6fb72b3a8bc /]# python

Python 2.7.5 (default,Nov 20 2015,02:00:19)

[GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2

Type "help","copyright","credits" or "license" for more information.

>>> exit()

[root@b6fb72b3a8bc /]#

[root@b6fb72b3a8bc /]# java -version

bash: java: command not found

[root@b6fb72b3a8bc /]# yum install java

Loaded plugins: fastestmirror,ovl

Loading mirror speeds from cached hostfile

* base: centos.ustc.edu.cn

* extras: centos.ustc.edu.cn

* updates: mirrors.zju.edu.cn

Resolving Dependencies

--> Running transaction check

---> Package java-1.8.0-openjdk.x86_64 1:1.8.0.91-0.b14.el7_2 will be installed

--> Processing Dependency: java-1.8.0-openjdk-headless = 1:1.8.0.91-0.b14.el7_2 for package: 1:java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64

--> Processing Dependency: xorg-x11-fonts-Type1 for package: 1:java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64

--> Processing Dependency: libpng15.so.15(PNG15_0)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64

--> Processing Dependency: libjvm.so(SUNWprivate_1.1)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64

--> Processing Dependency: libjpeg.so.62(LIBJPEG_6.2)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64

--> Processing Dependency: libjli.so(SUNWprivate_1.1)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64

--> Processing Dependency: libjava.so(SUNWprivate_1.1)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64

--> Processing Dependency: libasound.so.2(ALSA_0.9.0rc4)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64

--> Processing Dependency: libasound.so.2(ALSA_0.9)(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64

--> Processing Dependency: fontconfig for package: 1:java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64

--> Processing Dependency: libpng15.so.15()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64

--> Processing Dependency: libjvm.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64

--> Processing Dependency: libjpeg.so.62()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64

--> Processing Dependency: libjli.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64

--> Processing Dependency: libjava.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64

--> Processing Dependency: libgif.so.4()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64

--> Processing Dependency: libawt.so()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64

--> Processing Dependency: libasound.so.2()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64

--> Processing Dependency: libXtst.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64

--> Processing Dependency: libXrender.so.1()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64

--> Processing Dependency: libXi.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64

--> Processing Dependency: libXext.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64

--> Processing Dependency: libX11.so.6()(64bit) for package: 1:java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64

--> Running transaction check

---> Package alsa-lib.x86_64 0:1.0.28-2.el7 will be installed

---> Package fontconfig.x86_64 0:2.10.95-7.el7 will be installed

--> Processing Dependency: freetype for package: fontconfig-2.10.95-7.el7.x86_64

--> Processing Dependency: fontpackages-filesystem for package: fontconfig-2.10.95-7.el7.x86_64

--> Processing Dependency: libfreetype.so.6()(64bit) for package: fontconfig-2.10.95-7.el7.x86_64

---> Package giflib.x86_64 0:4.1.6-9.el7 will be installed

--> Processing Dependency: libSM.so.6()(64bit) for package: giflib-4.1.6-9.el7.x86_64

--> Processing Dependency: libICE.so.6()(64bit) for package: giflib-4.1.6-9.el7.x86_64

---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.91-0.b14.el7_2 will be installed

--> Processing Dependency: tzdata-java >= 2015d for package: 1:java-1.8.0-openjdk-headless-1.8.0.91-0.b14.el7_2.x86_64

--> Processing Dependency: lksctp-tools for package: 1:java-1.8.0-openjdk-headless-1.8.0.91-0.b14.el7_2.x86_64

--> Processing Dependency: jpackage-utils for package: 1:java-1.8.0-openjdk-headless-1.8.0.91-0.b14.el7_2.x86_64

---> Package libX11.x86_64 0:1.6.3-2.el7 will be installed

--> Processing Dependency: libX11-common >= 1.6.3-2.el7 for package: libX11-1.6.3-2.el7.x86_64

--> Processing Dependency: libxcb.so.1()(64bit) for package: libX11-1.6.3-2.el7.x86_64

---> Package libXext.x86_64 0:1.3.3-3.el7 will be installed

---> Package libXi.x86_64 0:1.7.4-2.el7 will be installed

---> Package libXrender.x86_64 0:0.9.8-2.1.el7 will be installed

---> Package libXtst.x86_64 0:1.2.2-2.1.el7 will be installed

---> Package libjpeg-turbo.x86_64 0:1.2.90-5.el7 will be installed

---> Package libpng.x86_64 2:1.5.13-7.el7_2 will be installed

---> Package xorg-x11-fonts-Type1.noarch 0:7.5-9.el7 will be installed

--> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch

--> Processing Dependency: ttmkfdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch

--> Processing Dependency: mkfontdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch

--> Processing Dependency: mkfontdir for package: xorg-x11-fonts-Type1-7.5-9.el7.noarch

--> Running transaction check

---> Package fontpackages-filesystem.noarch 0:1.44-8.el7 will be installed

---> Package freetype.x86_64 0:2.4.11-11.el7 will be installed

---> Package javapackages-tools.noarch 0:3.4.1-11.el7 will be installed

--> Processing Dependency: python-javapackages = 3.4.1-11.el7 for package: javapackages-tools-3.4.1-11.el7.noarch

--> Processing Dependency: libxslt for package: javapackages-tools-3.4.1-11.el7.noarch

---> Package libICE.x86_64 0:1.0.9-2.el7 will be installed

---> Package libSM.x86_64 0:1.2.2-2.el7 will be installed

---> Package libX11-common.noarch 0:1.6.3-2.el7 will be installed

---> Package libxcb.x86_64 0:1.11-4.el7 will be installed

--> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.11-4.el7.x86_64

---> Package lksctp-tools.x86_64 0:1.0.13-3.el7 will be installed

---> Package ttmkfdir.x86_64 0:3.0.9-42.el7 will be installed

---> Package tzdata-java.noarch 0:2016d-1.el7 will be installed

---> Package xorg-x11-font-utils.x86_64 1:7.5-20.el7 will be installed

--> Processing Dependency: libfontenc.so.1()(64bit) for package: 1:xorg-x11-font-utils-7.5-20.el7.x86_64

--> Processing Dependency: libXfont.so.1()(64bit) for package: 1:xorg-x11-font-utils-7.5-20.el7.x86_64

--> Running transaction check

---> Package libXau.x86_64 0:1.0.8-2.1.el7 will be installed

---> Package libXfont.x86_64 0:1.5.1-2.el7 will be installed

---> Package libfontenc.x86_64 0:1.1.2-3.el7 will be installed

---> Package libxslt.x86_64 0:1.1.28-5.el7 will be installed

---> Package python-javapackages.noarch 0:3.4.1-11.el7 will be installed

--> Processing Dependency: python-lxml for package: python-javapackages-3.4.1-11.el7.noarch

--> Running transaction check

---> Package python-lxml.x86_64 0:3.2.1-4.el7 will be installed

--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================================

Package Arch Version Repository Size

===================================================================================================================

Installing:

java-1.8.0-openjdk x86_64 1:1.8.0.91-0.b14.el7_2 updates 219 k

Installing for dependencies:

alsa-lib x86_64 1.0.28-2.el7 base 391 k

fontconfig x86_64 2.10.95-7.el7 base 228 k

fontpackages-filesystem noarch 1.44-8.el7 base 9.9 k

freetype x86_64 2.4.11-11.el7 base 391 k

giflib x86_64 4.1.6-9.el7 base 40 k

java-1.8.0-openjdk-headless x86_64 1:1.8.0.91-0.b14.el7_2 updates 31 M

javapackages-tools noarch 3.4.1-11.el7 base 73 k

libICE x86_64 1.0.9-2.el7 base 65 k

libSM x86_64 1.2.2-2.el7 base 39 k

libX11 x86_64 1.6.3-2.el7 base 605 k

libX11-common noarch 1.6.3-2.el7 base 162 k

libXau x86_64 1.0.8-2.1.el7 base 29 k

libXext x86_64 1.3.3-3.el7 base 39 k

libXfont x86_64 1.5.1-2.el7 base 150 k

libXi x86_64 1.7.4-2.el7 base 40 k

libXrender x86_64 0.9.8-2.1.el7 base 25 k

libXtst x86_64 1.2.2-2.1.el7 base 20 k

libfontenc x86_64 1.1.2-3.el7 base 30 k

libjpeg-turbo x86_64 1.2.90-5.el7 base 134 k

libpng x86_64 2:1.5.13-7.el7_2 updates 213 k

libxcb x86_64 1.11-4.el7 base 189 k

libxslt x86_64 1.1.28-5.el7 base 242 k

lksctp-tools x86_64 1.0.13-3.el7 base 87 k

python-javapackages noarch 3.4.1-11.el7 base 31 k

python-lxml x86_64 3.2.1-4.el7 base 758 k

ttmkfdir x86_64 3.0.9-42.el7 base 48 k

tzdata-java noarch 2016d-1.el7 updates 179 k

xorg-x11-font-utils x86_64 1:7.5-20.el7 base 87 k

xorg-x11-fonts-Type1 noarch 7.5-9.el7 base 521 k

Transaction Summary

===================================================================================================================

Install 1 Package (+29 Dependent packages)

Total download size: 36 M

Installed size: 116 M

Is this ok [y/d/N]: y

Downloading packages:

warning: /var/cache/yum/x86_64/7/base/packages/giflib-4.1.6-9.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature,key ID f4a80eb5: NOKEY

Public key for giflib-4.1.6-9.el7.x86_64.rpm is not installed

(1/30): giflib-4.1.6-9.el7.x86_64.rpm | 40 kB 00:00:00

(2/30): fontconfig-2.10.95-7.el7.x86_64.rpm | 228 kB 00:00:02

(3/30): alsa-lib-1.0.28-2.el7.x86_64.rpm | 391 kB 00:00:02

(4/30): fontpackages-filesystem-1.44-8.el7.noarch.rpm | 9.9 kB 00:00:02

(5/30): freetype-2.4.11-11.el7.x86_64.rpm | 391 kB 00:00:02

(6/30): javapackages-tools-3.4.1-11.el7.noarch.rpm | 73 kB 00:00:00

(7/30): libICE-1.0.9-2.el7.x86_64.rpm | 65 kB 00:00:00

(8/30): libSM-1.2.2-2.el7.x86_64.rpm | 39 kB 00:00:00

Public key for java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64.rpm is not installed

(9/30): java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64.rpm | 219 kB 00:00:03

(10/30): libXext-1.3.3-3.el7.x86_64.rpm | 39 kB 00:00:00

(11/30): libXau-1.0.8-2.1.el7.x86_64.rpm | 29 kB 00:00:00

(12/30): libX11-common-1.6.3-2.el7.noarch.rpm | 162 kB 00:00:01

(13/30): libXi-1.7.4-2.el7.x86_64.rpm | 40 kB 00:00:00

(14/30): libXrender-0.9.8-2.1.el7.x86_64.rpm | 25 kB 00:00:00

(15/30): libXtst-1.2.2-2.1.el7.x86_64.rpm | 20 kB 00:00:00

(16/30): libXfont-1.5.1-2.el7.x86_64.rpm | 150 kB 00:00:01

(17/30): libfontenc-1.1.2-3.el7.x86_64.rpm | 30 kB 00:00:00

(18/30): libpng-1.5.13-7.el7_2.x86_64.rpm | 213 kB 00:00:01

(19/30): libjpeg-turbo-1.2.90-5.el7.x86_64.rpm | 134 kB 00:00:02

(20/30): libxcb-1.11-4.el7.x86_64.rpm | 189 kB 00:00:01

(21/30): python-javapackages-3.4.1-11.el7.noarch.rpm | 31 kB 00:00:00

(22/30): libxslt-1.1.28-5.el7.x86_64.rpm | 242 kB 00:00:01

(23/30): ttmkfdir-3.0.9-42.el7.x86_64.rpm | 48 kB 00:00:00

(24/30): lksctp-tools-1.0.13-3.el7.x86_64.rpm | 87 kB 00:00:01

(25/30): xorg-x11-font-utils-7.5-20.el7.x86_64.rpm | 87 kB 00:00:02

(26/30): tzdata-java-2016d-1.el7.noarch.rpm | 179 kB 00:00:04

(27/30): python-lxml-3.2.1-4.el7.x86_64.rpm | 758 kB 00:00:05

(28/30): xorg-x11-fonts-Type1-7.5-9.el7.noarch.rpm | 521 kB 00:00:03

(29/30): libX11-1.6.3-2.el7.x86_64.rpm | 605 kB 00:00:11

(30/30): java-1.8.0-openjdk-headless-1.8.0.91-0.b14.el7_2.x86_64.rpm | 31 MB 00:01:15

-------------------------------------------------------------------------------------------------------------------

Total 475 kB/s | 36 MB 00:01:17

Retrieving key fromfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

Importing GPG key 0xF4A80EB5:

Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>"

Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5

Package : centos-release-7-2.1511.el7.centos.2.10.x86_64 (@CentOS)

From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

Is this ok [y/N]: y

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

Installing : freetype-2.4.11-11.el7.x86_64 1/30

Installing : libfontenc-1.1.2-3.el7.x86_64 2/30

Installing : libICE-1.0.9-2.el7.x86_64 3/30

Installing : libxslt-1.1.28-5.el7.x86_64 4/30

Installing : libjpeg-turbo-1.2.90-5.el7.x86_64 5/30

Installing : python-lxml-3.2.1-4.el7.x86_64 6/30

Installing : python-javapackages-3.4.1-11.el7.noarch 7/30

Installing : javapackages-tools-3.4.1-11.el7.noarch 8/30

Installing : libSM-1.2.2-2.el7.x86_64 9/30

Installing : libXfont-1.5.1-2.el7.x86_64 10/30

Installing : 1:xorg-x11-font-utils-7.5-20.el7.x86_64 11/30

Installing : ttmkfdir-3.0.9-42.el7.x86_64 12/30

Installing : lksctp-tools-1.0.13-3.el7.x86_64 13/30

Installing : libXau-1.0.8-2.1.el7.x86_64 14/30

Installing : libxcb-1.11-4.el7.x86_64 15/30

Installing : alsa-lib-1.0.28-2.el7.x86_64 16/30

Installing : libX11-common-1.6.3-2.el7.noarch 17/30

Installing : libX11-1.6.3-2.el7.x86_64 18/30

Installing : libXext-1.3.3-3.el7.x86_64 19/30

Installing : libXi-1.7.4-2.el7.x86_64 20/30

Installing : libXtst-1.2.2-2.1.el7.x86_64 21/30

Installing : giflib-4.1.6-9.el7.x86_64 22/30

Installing : libXrender-0.9.8-2.1.el7.x86_64 23/30

Installing : fontpackages-filesystem-1.44-8.el7.noarch 24/30

Installing : fontconfig-2.10.95-7.el7.x86_64 25/30

Installing : xorg-x11-fonts-Type1-7.5-9.el7.noarch 26/30

Installing : tzdata-java-2016d-1.el7.noarch 27/30

Installing : 1:java-1.8.0-openjdk-headless-1.8.0.91-0.b14.el7_2.x86_64 28/30

Installing : 2:libpng-1.5.13-7.el7_2.x86_64 29/30

Installing : 1:java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64 30/30

Verifying : libXext-1.3.3-3.el7.x86_64 1/30

Verifying : giflib-4.1.6-9.el7.x86_64 2/30

Verifying : libjpeg-turbo-1.2.90-5.el7.x86_64 3/30

Verifying : libXtst-1.2.2-2.1.el7.x86_64 4/30

Verifying : freetype-2.4.11-11.el7.x86_64 5/30

Verifying : python-lxml-3.2.1-4.el7.x86_64 6/30

Verifying : libxcb-1.11-4.el7.x86_64 7/30

Verifying : 2:libpng-1.5.13-7.el7_2.x86_64 8/30

Verifying : tzdata-java-2016d-1.el7.noarch 9/30

Verifying : fontpackages-filesystem-1.44-8.el7.noarch 10/30

Verifying : ttmkfdir-3.0.9-42.el7.x86_64 11/30

Verifying : 1:java-1.8.0-openjdk-headless-1.8.0.91-0.b14.el7_2.x86_64 12/30

Verifying : libX11-1.6.3-2.el7.x86_64 13/30

Verifying : python-javapackages-3.4.1-11.el7.noarch 14/30

Verifying : libXrender-0.9.8-2.1.el7.x86_64 15/30

Verifying : libX11-common-1.6.3-2.el7.noarch 16/30

Verifying : xorg-x11-fonts-Type1-7.5-9.el7.noarch 17/30

Verifying : libxslt-1.1.28-5.el7.x86_64 18/30

Verifying : libXfont-1.5.1-2.el7.x86_64 19/30

Verifying : libICE-1.0.9-2.el7.x86_64 20/30

Verifying : javapackages-tools-3.4.1-11.el7.noarch 21/30

Verifying : alsa-lib-1.0.28-2.el7.x86_64 22/30

Verifying : libXi-1.7.4-2.el7.x86_64 23/30

Verifying : libXau-1.0.8-2.1.el7.x86_64 24/30

Verifying : libSM-1.2.2-2.el7.x86_64 25/30

Verifying : libfontenc-1.1.2-3.el7.x86_64 26/30

Verifying : fontconfig-2.10.95-7.el7.x86_64 27/30

Verifying : lksctp-tools-1.0.13-3.el7.x86_64 28/30

Verifying : 1:java-1.8.0-openjdk-1.8.0.91-0.b14.el7_2.x86_64 29/30

Verifying : 1:xorg-x11-font-utils-7.5-20.el7.x86_64 30/30

Installed:

java-1.8.0-openjdk.x86_64 1:1.8.0.91-0.b14.el7_2

Dependency Installed:

alsa-lib.x86_64 0:1.0.28-2.el7 fontconfig.x86_64 0:2.10.95-7.el7

fontpackages-filesystem.noarch 0:1.44-8.el7 freetype.x86_64 0:2.4.11-11.el7

giflib.x86_64 0:4.1.6-9.el7 java-1.8.0-openjdk-headless.x86_64 1:1.8.0.91-0.b14.el7_2

javapackages-tools.noarch 0:3.4.1-11.el7 libICE.x86_64 0:1.0.9-2.el7

libSM.x86_64 0:1.2.2-2.el7 libX11.x86_64 0:1.6.3-2.el7

libX11-common.noarch 0:1.6.3-2.el7 libXau.x86_64 0:1.0.8-2.1.el7

libXext.x86_64 0:1.3.3-3.el7 libXfont.x86_64 0:1.5.1-2.el7

libXi.x86_64 0:1.7.4-2.el7 libXrender.x86_64 0:0.9.8-2.1.el7

libXtst.x86_64 0:1.2.2-2.1.el7 libfontenc.x86_64 0:1.1.2-3.el7

libjpeg-turbo.x86_64 0:1.2.90-5.el7 libpng.x86_64 2:1.5.13-7.el7_2

libxcb.x86_64 0:1.11-4.el7 libxslt.x86_64 0:1.1.28-5.el7

lksctp-tools.x86_64 0:1.0.13-3.el7 python-javapackages.noarch 0:3.4.1-11.el7

python-lxml.x86_64 0:3.2.1-4.el7 ttmkfdir.x86_64 0:3.0.9-42.el7

tzdata-java.noarch 0:2016d-1.el7 xorg-x11-font-utils.x86_64 1:7.5-20.el7

xorg-x11-fonts-Type1.noarch 0:7.5-9.el7

Complete!

[root@b6fb72b3a8bc /]# java -version

openjdk version "1.8.0_91"

OpenJDK Runtime Environment (build 1.8.0_91-b14)

OpenJDK 64-Bit Server VM (build 25.91-b14,mixed mode)

[root@localhost ~]#

原文链接:https://www.f2er.com/centos/381338.html

猜你在找的CentOS相关文章