当前位置: > Linux服务器 > Docker >

2种方式在centos中安装Docker

时间:2016-12-24 17:13来源:linux.it.net.cn 作者:IT

Docker安装在cent  os 中有2种方式Install with yum和Install with the script

前提条件


[root@MiWiFi-R1D-srv ~]# uname -r 
3.10.0-229.el7.x86_64 
Install with yum
1:root用户登录

2:$ sudo yum update


[root@MiWiFi-R1D-srv ~]# sudo yum update 
已加载插件:fastestmirror 
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast 
base                                                                                                                                                           | 3.6 kB  00:00:00      
extras                                                                                                                                                         | 3.4 kB  00:00:00      
mysql56-community                                                                                                                                              | 2.5 kB  00:00:00      
updates                                                                                                                                                        | 3.4 kB  00:00:00      
(1/5): extras/7/x86_64/primary_db                                                                                                                              | 117 kB  00:00:01      
(2/5): base/7/x86_64/group_gz                                                                                                                                  | 155 kB  00:00:02      
(3/5): mysql56-community/x86_64/primary_db                                                                                                                     | 122 kB  00:00:05      
(4/5): base/7/x86_64/primary_db                                                                                                                                | 5.3 MB  00:00:10      
(5/5): updates/7/x86_64/primary_db                                                                                                                             | 4.1 MB  00:00:12      
Determining fastest mirrors 
* base: mirrors.pubyun.com 
* extras: mirrors.pubyun.com 
* updates: mirrors.pubyun.com 
正在解决依赖关系 
--> 正在检查事务 
---> 软件包 NetworkManager.x86_64.1.1.0.0-14.git20150121.b4ea599c.el7 将被 升级 
---> 软件包 NetworkManager.x86_64.1.1.0.6-29.el7_2 将被 更新 
---> 软件包 NetworkManager-libnm.x86_64.1.1.0.0-14.git20150121.b4ea599c.el7 将被 升级 
---> 软件包 NetworkManager-libnm.x86_64.1.1.0.6-29.el7_2 将被 更新 
---> 软件包 NetworkManager-tui.x86_64.1.1.0.0-14.git20150121.b4ea599c.el7 将被 升级 
---> 软件包 NetworkManager-tui.x86_64.1.1.0.6-29.el7_2 将被 更新 
---> 软件包 alsa-tools-firmware.x86_64.0.1.0.27-4.el7 将被 升级 
---> 软件包 alsa-tools-firmware.x86_64.0.1.0.28-2.el7 将被 更新 
---> 软件包 authconfig.x86_64.0.6.2.8-9.el7 将被 升级 
---> 软件包 authconfig.x86_64.0.6.2.8-10.el7 将被 更新 
---> 软件包 avahi-autoipd.x86_64.0.0.6.31-14.el7 将被 升级 
---> 软件包 avahi-autoipd.x86_64.0.0.6.31-15.el7_2.1 将被 更新 
---> 软件包 avahi-libs.x86_64.0.0.6.31-14.el7 将被 升级 
---> 软件包 avahi-libs.x86_64.0.0.6.31-15.el7_2.1 将被 更新 
---> 软件包 bash.x86_64.0.4.2.46-12.el7 将被 升级 
---> 软件包 bash.x86_64.0.4.2.46-19.el7 将被 更新 
---> 软件包 bind-libs-lite.x86_64.32.9.9.4-18.el7 将被 升级 
---> 软件包 bind-libs-lite.x86_64.32.9.9.4-29.el7_2.3 将被 更新 
---> 软件包 bind-license.noarch.32.9.9.4-18.el7 将被 升级 
---> 软件包 bind-license.noarch.32.9.9.4-29.el7_2.3 将被 更新 
---> 软件包 binutils.x86_64.0.2.23.52.0.1-30.el7 将被 升级 
---> 软件包 binutils.x86_64.0.2.23.52.0.1-55.el7 将被 更新 
---> 软件包 biosdevname.x86_64.0.0.6.1-2.el7 将被 升级 
---> 软件包 biosdevname.x86_64.0.0.6.2-1.el7 将被 更新 
---> 软件包 btrfs-progs.x86_64.0.3.16.2-1.el7 将被 升级 
---> 软件包 btrfs-progs.x86_64.0.3.19.1-1.el7 将被 更新 
---> 软件包 bzip2-libs.x86_64.0.1.0.6-12.el7 将被 升级 
---> 软件包 bzip2-libs.x86_64.0.1.0.6-13.el7 将被 更新 
---> 软件包 ca-certificates.noarch.0.2014.1.98-72.el7 将被 升级 
---> 软件包 ca-certificates.noarch.0.2015.2.6-70.1.el7_2 将被 更新 
---> 软件包 centos-logos.noarch.0.70.0.6-1.el7.centos 将被 升级 
---> 软件包 centos-logos.noarch.0.70.0.6-3.el7.centos 将被 更新 
---> 软件包 centos-release.x86_64.0.7-1.1503.el7.centos.2.8 将被 升级 
---> 软件包 centos-release.x86_64.0.7-2.1511.el7.centos.2.10 将被 更新 
---> 软件包 chkconfig.x86_64.0.1.3.61-4.el7 将被 升级 
---> 软件包 chkconfig.x86_64.0.1.3.61-5.el7 将被 更新 
---> 软件包 coreutils.x86_64.0.8.22-11.el7 将被 升级 
---> 软件包 coreutils.x86_64.0.8.22-15.el7_2.1 将被 更新 
---> 软件包 cpio.x86_64.0.2.11-22.el7 将被 升级 
---> 软件包 cpio.x86_64.0.2.11-24.el7 将被 更新 
---> 软件包 cronie.x86_64.0.1.4.11-13.el7 将被 升级 
---> 软件包 cronie.x86_64.0.1.4.11-14.el7_2.1 将被 更新 
---> 软件包 cronie-anacron.x86_64.0.1.4.11-13.el7 将被 升级 
---> 软件包 cronie-anacron.x86_64.0.1.4.11-14.el7_2.1 将被 更新 
---> 软件包 cryptsetup-libs.x86_64.0.1.6.6-3.el7 将被 升级 
---> 软件包 cryptsetup-libs.x86_64.0.1.6.7-1.el7 将被 更新 
---> 软件包 curl.x86_64.0.7.29.0-19.el7 将被 升级 
---> 软件包 curl.x86_64.0.7.29.0-25.el7.centos 将被 更新 
---> 软件包 cyrus-sasl-lib.x86_64.0.2.1.26-17.el7 将被 升级 
---> 软件包 cyrus-sasl-lib.x86_64.0.2.1.26-20.el7_2 将被 更新 
---> 软件包 dbus.x86_64.1.1.6.12-11.el7 将被 升级 
---> 软件包 dbus.x86_64.1.1.6.12-13.el7 将被 更新 
---> 软件包 dbus-libs.x86_64.1.1.6.12-11.el7 将被 升级 
---> 软件包 dbus-libs.x86_64.1.1.6.12-13.el7 将被 更新 
---> 软件包 device-mapper.x86_64.7.1.02.93-3.el7 将被 升级 
---> 软件包 device-mapper.x86_64.7.1.02.107-5.el7_2.1 将被 更新 
---> 软件包 device-mapper-event.x86_64.7.1.02.93-3.el7 将被 升级 
---> 软件包 device-mapper-event.x86_64.7.1.02.107-5.el7_2.1 将被 更新 
---> 软件包 device-mapper-event-libs.x86_64.7.1.02.93-3.el7 将被 升级 
---> 软件包 device-mapper-event-libs.x86_64.7.1.02.107-5.el7_2.1 将被 更新 
---> 软件包 device-mapper-libs.x86_64.7.1.02.93-3.el7 将被 升级 
---> 软件包 device-mapper-libs.x86_64.7.1.02.107-5.el7_2.1 将被 更新 
---> 软件包 device-mapper-persistent-data.x86_64.0.0.4.1-2.el7 将被 升级 
---> 软件包 device-mapper-persistent-data.x86_64.0.0.5.5-1.el7 将被 更新 
---> 软件包 dhclient.x86_64.12.4.2.5-36.el7.centos 将被 升级 
---> 软件包 dhclient.x86_64.12.4.2.5-42.el7.centos 将被 更新 
---> 软件包 dhcp-common.x86_64.12.4.2.5-36.el7.centos 将被 升级 
---> 软件包 dhcp-common.x86_64.12.4.2.5-42.el7.centos 将被 更新 
---> 软件包 dhcp-libs.x86_64.12.4.2.5-36.el7.centos 将被 升级 
---> 软件包 dhcp-libs.x86_64.12.4.2.5-42.el7.centos 将被 更新 
---> 软件包 dmidecode.x86_64.1.2.12-5.el7 将被 升级 
---> 软件包 dmidecode.x86_64.1.2.12-9.el7 将被 更新 
---> 软件包 dnsmasq.x86_64.0.2.66-12.el7 将被 升级 
---> 软件包 dnsmasq.x86_64.0.2.66-14.el7_1 将被 更新 
---> 软件包 dracut.x86_64.0.033-240.el7 将被 升级 
---> 软件包 dracut.x86_64.0.033-360.el7_2 将被 更新 
---> 软件包 dracut-config-rescue.x86_64.0.033-240.el7 将被 升级 
---> 软件包 dracut-config-rescue.x86_64.0.033-360.el7_2 将被 更新 
---> 软件包 dracut-network.x86_64.0.033-240.el7 将被 升级 
---> 软件包 dracut-network.x86_64.0.033-360.el7_2 将被 更新 
---> 软件包 elfutils-libelf.x86_64.0.0.160-1.el7 将被 升级 
---> 软件包 elfutils-libelf.x86_64.0.0.163-3.el7 将被 更新 
---> 软件包 elfutils-libs.x86_64.0.0.160-1.el7 将被 升级 
---> 软件包 elfutils-libs.x86_64.0.0.163-3.el7 将被 更新 
---> 软件包 file.x86_64.0.5.11-21.el7 将被 升级 
---> 软件包 file.x86_64.0.5.11-31.el7 将被 更新 
---> 软件包 file-libs.x86_64.0.5.11-21.el7 将被 升级 
---> 软件包 file-libs.x86_64.0.5.11-31.el7 将被 更新 
---> 软件包 filesystem.x86_64.0.3.2-18.el7 将被 升级 
---> 软件包 filesystem.x86_64.0.3.2-20.el7 将被 更新 
---> 软件包 findutils.x86_64.1.4.5.11-3.el7 将被 升级 
---> 软件包 findutils.x86_64.1.4.5.11-5.el7 将被 更新 
---> 软件包 firewalld.noarch.0.0.3.9-11.el7 将被 升级 
---> 软件包 firewalld.noarch.0.0.3.9-14.el7 将被 更新 
---> 软件包 freetype.x86_64.0.2.4.11-9.el7 将被 升级 
---> 软件包 freetype.x86_64.0.2.4.11-11.el7 将被 更新 
---> 软件包 glib-networking.x86_64.0.2.40.0-1.el7 将被 升级 
---> 软件包 glib-networking.x86_64.0.2.42.0-1.el7 将被 更新 
---> 软件包 glib2.x86_64.0.2.40.0-4.el7 将被 升级 
---> 软件包 glib2.x86_64.0.2.42.2-5.el7 将被 更新 
---> 软件包 glibc.x86_64.0.2.17-78.el7 将被 升级 
---> 软件包 glibc.x86_64.0.2.17-106.el7_2.4 将被 更新 
---> 软件包 glibc-common.x86_64.0.2.17-78.el7 将被 升级 
---> 软件包 glibc-common.x86_64.0.2.17-106.el7_2.4 将被 更新 
---> 软件包 gmp.x86_64.1.6.0.0-11.el7 将被 升级 
---> 软件包 gmp.x86_64.1.6.0.0-12.el7_1 将被 更新 
---> 软件包 gnutls.x86_64.0.3.3.8-12.el7 将被 升级 
---> 软件包 gnutls.x86_64.0.3.3.8-14.el7_2 将被 更新 
---> 软件包 gobject-introspection.x86_64.0.1.36.0-4.el7 将被 升级 
---> 软件包 gobject-introspection.x86_64.0.1.42.0-1.el7 将被 更新 
---> 软件包 grep.x86_64.0.2.20-1.el7 将被 升级 
---> 软件包 grep.x86_64.0.2.20-2.el7 将被 更新 
---> 软件包 grub2.x86_64.1.2.02-0.16.el7.centos 将被 升级 
---> 软件包 grub2.x86_64.1.2.02-0.34.el7.centos 将被 更新 
---> 软件包 grub2-tools.x86_64.1.2.02-0.16.el7.centos 将被 升级 
---> 软件包 grub2-tools.x86_64.1.2.02-0.34.el7.centos 将被 更新 
---> 软件包 grubby.x86_64.0.8.28-11.el7 将被 升级 
---> 软件包 grubby.x86_64.0.8.28-17.el7 将被 更新 
---> 软件包 gsettings-desktop-schemas.x86_64.0.3.8.2-3.el7 将被 升级 
---> 软件包 gsettings-desktop-schemas.x86_64.0.3.14.2-1.el7 将被 更新 
---> 软件包 gzip.x86_64.0.1.5-7.el7 将被 升级 
---> 软件包 gzip.x86_64.0.1.5-8.el7 将被 更新 
---> 软件包 hwdata.noarch.0.0.252-7.5.el7 将被 升级 
---> 软件包 hwdata.x86_64.0.0.252-8.1.el7 将被 更新 
---> 软件包 initscripts.x86_64.0.9.49.24-1.el7 将被 升级 
---> 软件包 initscripts.x86_64.0.9.49.30-1.el7_2.2 将被 更新 
---> 软件包 iproute.x86_64.0.3.10.0-21.el7 将被 升级 
---> 软件包 iproute.x86_64.0.3.10.0-54.el7 将被 更新 
---> 软件包 iprutils.x86_64.0.2.4.3-3.el7 将被 升级 
---> 软件包 iprutils.x86_64.0.2.4.8-1.el7 将被 更新 
--> 正在处理依赖关系 lsscsi,它被软件包 iprutils-2.4.8-1.el7.x86_64 需要 
---> 软件包 iptables.x86_64.0.1.4.21-13.el7 将被 升级 
---> 软件包 iptables.x86_64.0.1.4.21-16.el7 将被 更新 
---> 软件包 iputils.x86_64.0.20121221-6.el7 将被 升级 
---> 软件包 iputils.x86_64.0.20121221-7.el7 将被 更新 
---> 软件包 irqbalance.x86_64.2.1.0.7-1.el7 将被 升级 
---> 软件包 irqbalance.x86_64.3.1.0.7-5.el7 将被 更新 
---> 软件包 iwl100-firmware.noarch.0.39.31.5.1-36.el7 将被 升级 
---> 软件包 iwl100-firmware.noarch.0.39.31.5.1-43.el7 将被 更新 
---> 软件包 iwl1000-firmware.noarch.1.39.31.5.1-36.el7 将被 升级 
---> 软件包 iwl1000-firmware.noarch.1.39.31.5.1-43.el7 将被 更新 
---> 软件包 iwl105-firmware.noarch.0.18.168.6.1-36.el7 将被 升级 
---> 软件包 iwl105-firmware.noarch.0.18.168.6.1-43.el7 将被 更新 
---> 软件包 iwl135-firmware.noarch.0.18.168.6.1-36.el7 将被 升级 
---> 软件包 iwl135-firmware.noarch.0.18.168.6.1-43.el7 将被 更新 
---> 软件包 iwl2000-firmware.noarch.0.18.168.6.1-36.el7 将被 升级 
---> 软件包 iwl2000-firmware.noarch.0.18.168.6.1-43.el7 将被 更新 
---> 软件包 iwl2030-firmware.noarch.0.18.168.6.1-36.el7 将被 升级 
---> 软件包 iwl2030-firmware.noarch.0.18.168.6.1-43.el7 将被 更新 
---> 软件包 iwl3160-firmware.noarch.0.22.0.7.0-36.el7 将被 升级 
---> 软件包 iwl3160-firmware.noarch.0.22.0.7.0-43.el7 将被 更新 
---> 软件包 iwl3945-firmware.noarch.0.15.32.2.9-36.el7 将被 升级 
---> 软件包 iwl3945-firmware.noarch.0.15.32.2.9-43.el7 将被 更新 
---> 软件包 iwl4965-firmware.noarch.0.228.61.2.24-36.el7 将被 升级 
---> 软件包 iwl4965-firmware.noarch.0.228.61.2.24-43.el7 将被 更新 
---> 软件包 iwl5000-firmware.noarch.0.8.83.5.1_1-36.el7 将被 升级 
---> 软件包 iwl5000-firmware.noarch.0.8.83.5.1_1-43.el7 将被 更新 
---> 软件包 iwl5150-firmware.noarch.0.8.24.2.2-36.el7 将被 升级 
---> 软件包 iwl5150-firmware.noarch.0.8.24.2.2-43.el7 将被 更新 
---> 软件包 iwl6000-firmware.noarch.0.9.221.4.1-36.el7 将被 升级 
---> 软件包 iwl6000-firmware.noarch.0.9.221.4.1-43.el7 将被 更新 
---> 软件包 iwl6000g2a-firmware.noarch.0.17.168.5.3-36.el7 将被 升级 
---> 软件包 iwl6000g2a-firmware.noarch.0.17.168.5.3-43.el7 将被 更新 
---> 软件包 iwl6000g2b-firmware.noarch.0.17.168.5.2-36.el7 将被 升级 
---> 软件包 iwl6000g2b-firmware.noarch.0.17.168.5.2-43.el7 将被 更新 
---> 软件包 iwl6050-firmware.noarch.0.41.28.5.1-36.el7 将被 升级 
---> 软件包 iwl6050-firmware.noarch.0.41.28.5.1-43.el7 将被 更新 
---> 软件包 iwl7260-firmware.noarch.0.22.0.7.0-36.el7 将被 升级 
---> 软件包 iwl7260-firmware.noarch.0.22.0.7.0-43.el7 将被 更新 
---> 软件包 kernel.x86_64.0.3.10.0-327.13.1.el7 将被 安装 
---> 软件包 kernel-tools.x86_64.0.3.10.0-229.el7 将被 升级 
---> 软件包 kernel-tools.x86_64.0.3.10.0-327.13.1.el7 将被 更新 
---> 软件包 kernel-tools-libs.x86_64.0.3.10.0-229.el7 将被 升级 
---> 软件包 kernel-tools-libs.x86_64.0.3.10.0-327.13.1.el7 将被 更新 
---> 软件包 kexec-tools.x86_64.0.2.0.7-19.el7 将被 升级 
---> 软件包 kexec-tools.x86_64.0.2.0.7-38.el7_2.1 将被 更新 
---> 软件包 kmod.x86_64.0.14-10.el7 将被 升级 
---> 软件包 kmod.x86_64.0.20-5.el7 将被 更新 
---> 软件包 kmod-libs.x86_64.0.14-10.el7 将被 升级 
---> 软件包 kmod-libs.x86_64.0.20-5.el7 将被 更新 
---> 软件包 kpartx.x86_64.0.0.4.9-77.el7 将被 升级 
---> 软件包 kpartx.x86_64.0.0.4.9-85.el7_2.1 将被 更新 
---> 软件包 krb5-libs.x86_64.0.1.12.2-14.el7 将被 升级 
---> 软件包 krb5-libs.x86_64.0.1.13.2-12.el7_2 将被 更新 
---> 软件包 less.x86_64.0.458-8.el7 将被 升级 
---> 软件包 less.x86_64.0.458-9.el7 将被 更新 
---> 软件包 libaio.x86_64.0.0.3.109-12.el7 将被 升级 
---> 软件包 libaio.x86_64.0.0.3.109-13.el7 将被 更新 
---> 软件包 libblkid.x86_64.0.2.23.2-21.el7 将被 升级 
---> 软件包 libblkid.x86_64.0.2.23.2-26.el7_2.2 将被 更新 
---> 软件包 libcap-ng.x86_64.0.0.7.3-5.el7 将被 升级 
---> 软件包 libcap-ng.x86_64.0.0.7.5-4.el7 将被 更新 
---> 软件包 libcurl.x86_64.0.7.29.0-19.el7 将被 升级 
---> 软件包 libcurl.x86_64.0.7.29.0-25.el7.centos 将被 更新 
---> 软件包 libdb.x86_64.0.5.3.21-17.el7_0.1 将被 升级 
---> 软件包 libdb.x86_64.0.5.3.21-19.el7 将被 更新 
---> 软件包 libdb-utils.x86_64.0.5.3.21-17.el7_0.1 将被 升级 
---> 软件包 libdb-utils.x86_64.0.5.3.21-19.el7 将被 更新 
---> 软件包 libdrm.x86_64.0.2.4.56-2.el7 将被 升级 
---> 软件包 libdrm.x86_64.0.2.4.60-3.el7 将被 更新 
---> 软件包 libffi.x86_64.0.3.0.13-11.el7 将被 升级 
---> 软件包 libffi.x86_64.0.3.0.13-16.el7 将被 更新 
---> 软件包 libgcc.x86_64.0.4.8.3-9.el7 将被 升级 
---> 软件包 libgcc.x86_64.0.4.8.5-4.el7 将被 更新 
---> 软件包 libgcrypt.x86_64.0.1.5.3-12.el7 将被 升级 
---> 软件包 libgcrypt.x86_64.0.1.5.3-12.el7_1.1 将被 更新 
---> 软件包 libgomp.x86_64.0.4.8.3-9.el7 将被 升级 
---> 软件包 libgomp.x86_64.0.4.8.5-4.el7 将被 更新 
---> 软件包 libgudev1.x86_64.0.208-20.el7 将被 升级 
---> 软件包 libgudev1.x86_64.0.219-19.el7_2.7 将被 更新 
---> 软件包 libidn.x86_64.0.1.28-3.el7 将被 升级 
---> 软件包 libidn.x86_64.0.1.28-4.el7 将被 更新 
---> 软件包 libmount.x86_64.0.2.23.2-21.el7 将被 升级 
---> 软件包 libmount.x86_64.0.2.23.2-26.el7_2.2 将被 更新 
---> 软件包 libnl3.x86_64.0.3.2.21-8.el7 将被 升级 
---> 软件包 libnl3.x86_64.0.3.2.21-10.el7 将被 更新 
---> 软件包 libnl3-cli.x86_64.0.3.2.21-8.el7 将被 升级 
---> 软件包 libnl3-cli.x86_64.0.3.2.21-10.el7 将被 更新 
---> 软件包 libpcap.x86_64.14.1.5.3-3.el7_0.1 将被 升级 
---> 软件包 libpcap.x86_64.14.1.5.3-8.el7 将被 更新 
---> 软件包 libpciaccess.x86_64.0.0.13.1-4.1.el7 将被 升级 
---> 软件包 libpciaccess.x86_64.0.0.13.4-2.el7 将被 更新 
---> 软件包 libproxy.x86_64.0.0.4.11-6.el7 将被 升级 
---> 软件包 libproxy.x86_64.0.0.4.11-8.el7 将被 更新 
---> 软件包 libsemanage.x86_64.0.2.1.10-16.el7 将被 升级 
---> 软件包 libsemanage.x86_64.0.2.1.10-18.el7 将被 更新 
---> 软件包 libsoup.x86_64.0.2.46.0-3.el7 将被 升级 
---> 软件包 libsoup.x86_64.0.2.48.1-3.el7 将被 更新 
---> 软件包 libssh2.x86_64.0.1.4.3-8.el7 将被 升级 
---> 软件包 libssh2.x86_64.0.1.4.3-10.el7_2.1 将被 更新 
---> 软件包 libstdc++.x86_64.0.4.8.3-9.el7 将被 升级 
---> 软件包 libstdc++.x86_64.0.4.8.5-4.el7 将被 更新 
---> 软件包 libteam.x86_64.0.1.15-1.el7 将被 升级 
---> 软件包 libteam.x86_64.0.1.17-6.el7_2 将被 更新 
---> 软件包 libuser.x86_64.0.0.60-5.el7 将被 升级 
---> 软件包 libuser.x86_64.0.0.60-7.el7_1 将被 更新 
---> 软件包 libuuid.x86_64.0.2.23.2-21.el7 将被 升级 
---> 软件包 libuuid.x86_64.0.2.23.2-26.el7_2.2 将被 更新 
---> 软件包 libxml2.x86_64.0.2.9.1-5.el7_0.1 将被 升级 
---> 软件包 libxml2.x86_64.0.2.9.1-6.el7_2.2 将被 更新 
---> 软件包 linux-firmware.noarch.0.20140911-0.1.git365e80c.el7 将被 升级 
---> 软件包 linux-firmware.noarch.0.20150904-43.git6ebf5d5.el7 将被 更新 
---> 软件包 logrotate.x86_64.0.3.8.6-4.el7 将被 升级 
---> 软件包 logrotate.x86_64.0.3.8.6-7.el7_2 将被 更新 
---> 软件包 lvm2.x86_64.7.2.02.115-3.el7 将被 升级 
---> 软件包 lvm2.x86_64.7.2.02.130-5.el7_2.1 将被 更新 
---> 软件包 lvm2-libs.x86_64.7.2.02.115-3.el7 将被 升级 
---> 软件包 lvm2-libs.x86_64.7.2.02.130-5.el7_2.1 将被 更新 
---> 软件包 lzo.x86_64.0.2.06-6.el7_0.2 将被 升级 
---> 软件包 lzo.x86_64.0.2.06-8.el7 将被 更新 
---> 软件包 microcode_ctl.x86_64.2.2.1-10.el7 将被 升级 
---> 软件包 microcode_ctl.x86_64.2.2.1-12.el7 将被 更新 
---> 软件包 mozjs17.x86_64.0.17.0.0-10.el7 将被 升级 
---> 软件包 mozjs17.x86_64.0.17.0.0-12.el7 将被 更新 
---> 软件包 mysql-community-client.x86_64.0.5.6.27-2.el7 将被 升级 
---> 软件包 mysql-community-client.x86_64.0.5.6.30-2.el7 将被 更新 
---> 软件包 mysql-community-common.x86_64.0.5.6.27-2.el7 将被 升级 
---> 软件包 mysql-community-common.x86_64.0.5.6.30-2.el7 将被 更新 
---> 软件包 mysql-community-libs.x86_64.0.5.6.27-2.el7 将被 升级 
---> 软件包 mysql-community-libs.x86_64.0.5.6.30-2.el7 将被 更新 
---> 软件包 mysql-community-server.x86_64.0.5.6.27-2.el7 将被 升级 
---> 软件包 mysql-community-server.x86_64.0.5.6.30-2.el7 将被 更新 
---> 软件包 nspr.x86_64.0.4.10.6-3.el7 将被 升级 
---> 软件包 nspr.x86_64.0.4.10.8-2.el7_1 将被 更新 
---> 软件包 nss.x86_64.0.3.16.2.3-5.el7 将被 升级 
---> 软件包 nss.x86_64.0.3.19.1-19.el7_2 将被 更新 
---> 软件包 nss-softokn.x86_64.0.3.16.2.3-9.el7 将被 升级 
---> 软件包 nss-softokn.x86_64.0.3.16.2.3-13.el7_1 将被 更新 
---> 软件包 nss-softokn-freebl.x86_64.0.3.16.2.3-9.el7 将被 升级 
---> 软件包 nss-softokn-freebl.x86_64.0.3.16.2.3-13.el7_1 将被 更新 
---> 软件包 nss-sysinit.x86_64.0.3.16.2.3-5.el7 将被 升级 
---> 软件包 nss-sysinit.x86_64.0.3.19.1-19.el7_2 将被 更新 
---> 软件包 nss-tools.x86_64.0.3.16.2.3-5.el7 将被 升级 
---> 软件包 nss-tools.x86_64.0.3.19.1-19.el7_2 将被 更新 
---> 软件包 nss-util.x86_64.0.3.16.2.3-2.el7 将被 升级 
---> 软件包 nss-util.x86_64.0.3.19.1-9.el7_2 将被 更新 
---> 软件包 numactl-libs.x86_64.0.2.0.9-4.el7 将被 升级 
---> 软件包 numactl-libs.x86_64.0.2.0.9-6.el7_2 将被 更新 
---> 软件包 openldap.x86_64.0.2.4.39-6.el7 将被 升级 
---> 软件包 openldap.x86_64.0.2.4.40-9.el7_2 将被 更新 
---> 软件包 openssh.x86_64.0.6.6.1p1-11.el7 将被 升级 
---> 软件包 openssh.x86_64.0.6.6.1p1-25.el7_2 将被 更新 
---> 软件包 openssh-clients.x86_64.0.6.6.1p1-11.el7 将被 升级 
---> 软件包 openssh-clients.x86_64.0.6.6.1p1-25.el7_2 将被 更新 
---> 软件包 openssh-server.x86_64.0.6.6.1p1-11.el7 将被 升级 
---> 软件包 openssh-server.x86_64.0.6.6.1p1-25.el7_2 将被 更新 
---> 软件包 openssl.x86_64.1.1.0.1e-42.el7 将被 升级 
---> 软件包 openssl.x86_64.1.1.0.1e-51.el7_2.4 将被 更新 
---> 软件包 openssl-libs.x86_64.1.1.0.1e-42.el7 将被 升级 
---> 软件包 openssl-libs.x86_64.1.1.0.1e-51.el7_2.4 将被 更新 
---> 软件包 pam.x86_64.0.1.1.8-12.el7 将被 升级 
---> 软件包 pam.x86_64.0.1.1.8-12.el7_1.1 将被 更新 
---> 软件包 parted.x86_64.0.3.1-20.el7 将被 升级 
---> 软件包 parted.x86_64.0.3.1-23.el7 将被 更新 
---> 软件包 pcre.x86_64.0.8.32-14.el7 将被 升级 
---> 软件包 pcre.x86_64.0.8.32-15.el7 将被 更新 
---> 软件包 perl.x86_64.4.5.16.3-285.el7 将被 升级 
---> 软件包 perl.x86_64.4.5.16.3-286.el7 将被 更新 
---> 软件包 perl-Pod-Escapes.noarch.1.1.04-285.el7 将被 升级 
---> 软件包 perl-Pod-Escapes.noarch.1.1.04-286.el7 将被 更新 
---> 软件包 perl-libs.x86_64.4.5.16.3-285.el7 将被 升级 
---> 软件包 perl-libs.x86_64.4.5.16.3-286.el7 将被 更新 
---> 软件包 perl-macros.x86_64.4.5.16.3-285.el7 将被 升级 
---> 软件包 perl-macros.x86_64.4.5.16.3-286.el7 将被 更新 
---> 软件包 plymouth.x86_64.0.0.8.9-0.13.20140113.el7.centos 将被 升级 
---> 软件包 plymouth.x86_64.0.0.8.9-0.24.20140113.el7.centos 将被 更新 
---> 软件包 plymouth-core-libs.x86_64.0.0.8.9-0.13.20140113.el7.centos 将被 升级 
---> 软件包 plymouth-core-libs.x86_64.0.0.8.9-0.24.20140113.el7.centos 将被 更新 
---> 软件包 plymouth-scripts.x86_64.0.0.8.9-0.13.20140113.el7.centos 将被 升级 
---> 软件包 plymouth-scripts.x86_64.0.0.8.9-0.24.20140113.el7.centos 将被 更新 
---> 软件包 policycoreutils.x86_64.0.2.2.5-15.el7 将被 升级 
---> 软件包 policycoreutils.x86_64.0.2.2.5-20.el7 将被 更新 
---> 软件包 polkit.x86_64.0.0.112-5.el7 将被 升级 
---> 软件包 polkit.x86_64.0.0.112-6.el7_2 将被 更新 
---> 软件包 procps-ng.x86_64.0.3.3.10-3.el7 将被 升级 
---> 软件包 procps-ng.x86_64.0.3.3.10-5.el7_2 将被 更新 
---> 软件包 pth.x86_64.0.2.0.7-22.el7 将被 升级 
---> 软件包 pth.x86_64.0.2.0.7-23.el7 将被 更新 
---> 软件包 pygobject3-base.x86_64.0.3.8.2-6.el7 将被 升级 
---> 软件包 pygobject3-base.x86_64.0.3.14.0-3.el7 将被 更新 
---> 软件包 python.x86_64.0.2.7.5-16.el7 将被 升级 
---> 软件包 python.x86_64.0.2.7.5-34.el7 将被 更新 
---> 软件包 python-libs.x86_64.0.2.7.5-16.el7 将被 升级 
---> 软件包 python-libs.x86_64.0.2.7.5-34.el7 将被 更新 
---> 软件包 python-pyudev.noarch.0.0.15-6.el7 将被 升级 
---> 软件包 python-pyudev.noarch.0.0.15-7.el7_2.1 将被 更新 
---> 软件包 python-setuptools.noarch.0.0.9.8-3.el7 将被 升级 
---> 软件包 python-setuptools.noarch.0.0.9.8-4.el7 将被 更新 
---> 软件包 python-urlgrabber.noarch.0.3.10-6.el7 将被 升级 
---> 软件包 python-urlgrabber.noarch.0.3.10-7.el7 将被 更新 
---> 软件包 rdma.noarch.0.7.1_3.17-5.el7 将被 升级 
---> 软件包 rdma.noarch.0.7.2_4.1_rc6-2.el7 将被 更新 
---> 软件包 rpm.x86_64.0.4.11.1-25.el7 将被 升级 
---> 软件包 rpm.x86_64.0.4.11.3-17.el7 将被 更新 
---> 软件包 rpm-build-libs.x86_64.0.4.11.1-25.el7 将被 升级 
---> 软件包 rpm-build-libs.x86_64.0.4.11.3-17.el7 将被 更新 
---> 软件包 rpm-libs.x86_64.0.4.11.1-25.el7 将被 升级 
---> 软件包 rpm-libs.x86_64.0.4.11.3-17.el7 将被 更新 
---> 软件包 rpm-python.x86_64.0.4.11.1-25.el7 将被 升级 
---> 软件包 rpm-python.x86_64.0.4.11.3-17.el7 将被 更新 
---> 软件包 rsyslog.x86_64.0.7.4.7-7.el7_0 将被 升级 
---> 软件包 rsyslog.x86_64.0.7.4.7-12.el7 将被 更新 
---> 软件包 selinux-policy.noarch.0.3.13.1-23.el7 将被 升级 
---> 软件包 selinux-policy.noarch.0.3.13.1-60.el7_2.3 将被 更新 
---> 软件包 selinux-policy-targeted.noarch.0.3.13.1-23.el7 将被 升级 
---> 软件包 selinux-policy-targeted.noarch.0.3.13.1-60.el7_2.3 将被 更新 
---> 软件包 setup.noarch.0.2.8.71-5.el7 将被 升级 
---> 软件包 setup.noarch.0.2.8.71-6.el7 将被 更新 
---> 软件包 shared-mime-info.x86_64.0.1.1-7.el7 将被 升级 
---> 软件包 shared-mime-info.x86_64.0.1.1-9.el7 将被 更新 
---> 软件包 sqlite.x86_64.0.3.7.17-4.el7 将被 升级 
---> 软件包 sqlite.x86_64.0.3.7.17-8.el7 将被 更新 
---> 软件包 sudo.x86_64.0.1.8.6p7-13.el7 将被 升级 
---> 软件包 sudo.x86_64.0.1.8.6p7-17.el7_2 将被 更新 
---> 软件包 systemd.x86_64.0.208-20.el7 将被 升级 
---> 软件包 systemd.x86_64.0.219-19.el7_2.7 将被 更新 
---> 软件包 systemd-libs.x86_64.0.208-20.el7 将被 升级 
---> 软件包 systemd-libs.x86_64.0.219-19.el7_2.7 将被 更新 
---> 软件包 systemd-sysv.x86_64.0.208-20.el7 将被 升级 
---> 软件包 systemd-sysv.x86_64.0.219-19.el7_2.7 将被 更新 
---> 软件包 teamd.x86_64.0.1.15-1.el7 将被 升级 
---> 软件包 teamd.x86_64.0.1.17-6.el7_2 将被 更新 
---> 软件包 trousers.x86_64.0.0.3.11.2-3.el7 将被 升级 
---> 软件包 trousers.x86_64.0.0.3.13-1.el7 将被 更新 
---> 软件包 tuned.noarch.0.2.4.1-1.el7 将被 升级 
---> 软件包 tuned.noarch.0.2.5.1-4.el7_2.3 将被 更新 
--> 正在处理依赖关系 python-perf,它被软件包 tuned-2.5.1-4.el7_2.3.noarch 需要 
---> 软件包 tzdata.noarch.0.2015a-1.el7 将被 升级 
---> 软件包 tzdata.noarch.0.2016c-1.el7 将被 更新 
---> 软件包 util-linux.x86_64.0.2.23.2-21.el7 将被 升级 
---> 软件包 util-linux.x86_64.0.2.23.2-26.el7_2.2 将被 更新 
---> 软件包 virt-what.x86_64.0.1.13-5.el7 将被 升级 
---> 软件包 virt-what.x86_64.0.1.13-6.el7 将被 更新 
---> 软件包 wpa_supplicant.x86_64.1.2.0-13.el7_0 将被 升级 
---> 软件包 wpa_supplicant.x86_64.1.2.0-17.el7_1 将被 更新 
---> 软件包 xfsprogs.x86_64.0.3.2.1-6.el7 将被 升级 
---> 软件包 xfsprogs.x86_64.0.3.2.2-2.el7 将被 更新 
---> 软件包 xz.x86_64.0.5.1.2-9alpha.el7 将被 升级 
---> 软件包 xz.x86_64.0.5.1.2-12alpha.el7 将被 更新 
---> 软件包 xz-libs.x86_64.0.5.1.2-9alpha.el7 将被 升级 
---> 软件包 xz-libs.x86_64.0.5.1.2-12alpha.el7 将被 更新 
---> 软件包 yum.noarch.0.3.4.3-125.el7.centos 将被 升级 
---> 软件包 yum.noarch.0.3.4.3-132.el7.centos.0.1 将被 更新 
---> 软件包 yum-plugin-fastestmirror.noarch.0.1.1.31-29.el7 将被 升级 
---> 软件包 yum-plugin-fastestmirror.noarch.0.1.1.31-34.el7 将被 更新 
---> 软件包 zlib.x86_64.0.1.2.7-13.el7 将被 升级 
---> 软件包 zlib.x86_64.0.1.2.7-15.el7 将被 更新 
--> 正在检查事务 
---> 软件包 lsscsi.x86_64.0.0.27-3.el7 将被 安装 
---> 软件包 python-perf.x86_64.0.3.10.0-327.13.1.el7 将被 安装 
--> 解决依赖关系完成 
 
依赖关系解决 
 
====================================================================================================================================================================================== 
Package                                             架构                         版本                                                  源                                       大小 
====================================================================================================================================================================================== 
正在安装: 
kernel                                              x86_64                       3.10.0-327.13.1.el7                                   updates                                  33 M 
正在更新: 
NetworkManager                                      x86_64                       1:1.0.6-29.el7_2                                      updates                                 2.0 M 
NetworkManager-libnm                                x86_64                       1:1.0.6-29.el7_2                                      updates                                 498 k 
NetworkManager-tui                                  x86_64                       1:1.0.6-29.el7_2                                      updates                                 212 k 
alsa-tools-firmware                                 x86_64                       1.0.28-2.el7                                          base                                     35 k 
authconfig                                          x86_64                       6.2.8-10.el7                                          base                                    402 k 
avahi-autoipd                                       x86_64                       0.6.31-15.el7_2.1                                     updates                                  39 k 
avahi-libs                                          x86_64                       0.6.31-15.el7_2.1                                     updates                                  61 k 
bash                                                x86_64                       4.2.46-19.el7                                         base                                    1.0 M 
bind-libs-lite                                      x86_64                       32:9.9.4-29.el7_2.3                                   updates                                 724 k 
bind-license                                        noarch                       32:9.9.4-29.el7_2.3                                   updates                                  82 k 
binutils                                            x86_64                       2.23.52.0.1-55.el7                                    base                                    5.0 M 
biosdevname                                         x86_64                       0.6.2-1.el7                                           base                                     38 k 
btrfs-progs                                         x86_64                       3.19.1-1.el7                                          base                                    552 k 
bzip2-libs                                          x86_64                       1.0.6-13.el7                                          base                                     40 k 
ca-certificates                                     noarch                       2015.2.6-70.1.el7_2                                   updates                                 428 k 
centos-logos                                        noarch                       70.0.6-3.el7.centos                                   base                                     21 M 
centos-release                                      x86_64                       7-2.1511.el7.centos.2.10                              base                                     23 k 
chkconfig                                           x86_64                       1.3.61-5.el7                                          base                                    172 k 
coreutils                                           x86_64                       8.22-15.el7_2.1                                       updates                                 3.2 M 
cpio                                                x86_64                       2.11-24.el7                                           base                                    210 k 
cronie                                              x86_64                       1.4.11-14.el7_2.1                                     updates                                  90 k 
cronie-anacron                                      x86_64                       1.4.11-14.el7_2.1                                     updates                                  35 k 
cryptsetup-libs                                     x86_64                       1.6.7-1.el7                                           base                                    182 k 
curl                                                x86_64                       7.29.0-25.el7.centos                                  base                                    263 k 
cyrus-sasl-lib                                      x86_64                       2.1.26-20.el7_2                                       updates                                 155 k 
dbus                                                x86_64                       1:1.6.12-13.el7                                       base                                    306 k 
dbus-libs                                           x86_64                       1:1.6.12-13.el7                                       base                                    151 k 
device-mapper                                       x86_64                       7:1.02.107-5.el7_2.1                                  updates                                 252 k 
device-mapper-event                                 x86_64                       7:1.02.107-5.el7_2.1                                  updates                                 167 k 
device-mapper-event-libs                            x86_64                       7:1.02.107-5.el7_2.1                                  updates                                 169 k 
device-mapper-libs                                  x86_64                       7:1.02.107-5.el7_2.1                                  updates                                 304 k 
device-mapper-persistent-data                       x86_64                       0.5.5-1.el7                                           base                                    350 k 
dhclient                                            x86_64                       12:4.2.5-42.el7.centos                                base                                    279 k 
dhcp-common                                         x86_64                       12:4.2.5-42.el7.centos                                base                                    172 k 
dhcp-libs                                           x86_64                       12:4.2.5-42.el7.centos                                base                                    128 k 
dmidecode                                           x86_64                       1:2.12-9.el7                                          base                                     82 k 
dnsmasq                                             x86_64                       2.66-14.el7_1                                         base                                    229 k 
dracut                                              x86_64                       033-360.el7_2                                         updates                                 311 k 
dracut-config-rescue                                x86_64                       033-360.el7_2                                         updates                                  49 k 
dracut-network                                      x86_64                       033-360.el7_2                                         updates                                  90 k 
elfutils-libelf                                     x86_64                       0.163-3.el7                                           base                                    200 k 
elfutils-libs                                       x86_64                       0.163-3.el7                                           base                                    260 k 
file                                                x86_64                       5.11-31.el7                                           base                                     56 k 
file-libs                                           x86_64                       5.11-31.el7                                           base                                    339 k 
filesystem                                          x86_64                       3.2-20.el7                                            base                                    1.0 M 
findutils                                           x86_64                       1:4.5.11-5.el7                                        base                                    559 k 
firewalld                                           noarch                       0.3.9-14.el7                                          base                                    476 k 
freetype                                            x86_64                       2.4.11-11.el7                                         base                                    391 k 
glib-networking                                     x86_64                       2.42.0-1.el7                                          base                                    123 k 
glib2                                               x86_64                       2.42.2-5.el7                                          base                                    2.2 M 
glibc                                               x86_64                       2.17-106.el7_2.4                                      updates                                 3.6 M 
glibc-common                                        x86_64                       2.17-106.el7_2.4                                      updates                                  11 M 
gmp                                                 x86_64                       1:6.0.0-12.el7_1                                      updates                                 280 k 
gnutls                                              x86_64                       3.3.8-14.el7_2                                        updates                                 662 k 
gobject-introspection                               x86_64                       1.42.0-1.el7                                          base                                    230 k 
grep                                                x86_64                       2.20-2.el7                                            base                                    344 k 
grub2                                               x86_64                       1:2.02-0.34.el7.centos                                updates                                 1.5 M 
grub2-tools                                         x86_64                       1:2.02-0.34.el7.centos                                updates                                 3.3 M 
grubby                                              x86_64                       8.28-17.el7                                           base                                     65 k 
gsettings-desktop-schemas                           x86_64                       3.14.2-1.el7                                          base                                    476 k 
gzip                                                x86_64                       1.5-8.el7                                             base                                    129 k 
hwdata                                              x86_64                       0.252-8.1.el7                                         base                                    2.1 M 
initscripts                                         x86_64                       9.49.30-1.el7_2.2                                     updates                                 429 k 
iproute                                             x86_64                       3.10.0-54.el7                                         base                                    526 k 
iprutils                                            x86_64                       2.4.8-1.el7                                           base                                    231 k 
iptables                                            x86_64                       1.4.21-16.el7                                         base                                    424 k 
iputils                                             x86_64                       20121221-7.el7                                        base                                    152 k 
irqbalance                                          x86_64                       3:1.0.7-5.el7                                         base                                     44 k 
iwl100-firmware                                     noarch                       39.31.5.1-43.el7                                      base                                    147 k 
iwl1000-firmware                                    noarch                       1:39.31.5.1-43.el7                                    base                                    210 k 
iwl105-firmware                                     noarch                       18.168.6.1-43.el7                                     base                                    231 k 
iwl135-firmware                                     noarch                       18.168.6.1-43.el7                                     base                                    240 k 
iwl2000-firmware                                    noarch                       18.168.6.1-43.el7                                     base                                    234 k 
iwl2030-firmware                                    noarch                       18.168.6.1-43.el7                                     base                                    243 k 
iwl3160-firmware                                    noarch                       22.0.7.0-43.el7                                       base                                    839 k 
iwl3945-firmware                                    noarch                       15.32.2.9-43.el7                                      base                                     85 k 
iwl4965-firmware                                    noarch                       228.61.2.24-43.el7                                    base                                     99 k 
iwl5000-firmware                                    noarch                       8.83.5.1_1-43.el7                                     base                                    291 k 
iwl5150-firmware                                    noarch                       8.24.2.2-43.el7                                       base                                    144 k 
iwl6000-firmware                                    noarch                       9.221.4.1-43.el7                                      base                                    164 k 
iwl6000g2a-firmware                                 noarch                       17.168.5.3-43.el7                                     base                                    307 k 
iwl6000g2b-firmware                                 noarch                       17.168.5.2-43.el7                                     base                                    307 k 
iwl6050-firmware                                    noarch                       41.28.5.1-43.el7                                      base                                    240 k 
iwl7260-firmware                                    noarch                       22.0.7.0-43.el7                                       base                                    895 k 
kernel-tools                                        x86_64                       3.10.0-327.13.1.el7                                   updates                                 2.4 M 
kernel-tools-libs                                   x86_64                       3.10.0-327.13.1.el7                                   updates                                 2.3 M 
kexec-tools                                         x86_64                       2.0.7-38.el7_2.1                                      updates                                 306 k 
kmod                                                x86_64                       20-5.el7                                              base                                    114 k 
kmod-libs                                           x86_64                       20-5.el7                                              base                                     47 k 
kpartx                                              x86_64                       0.4.9-85.el7_2.1                                      updates                                  59 k 
krb5-libs                                           x86_64                       1.13.2-12.el7_2                                       updates                                 843 k 
less                                                x86_64                       458-9.el7                                             base                                    120 k 
libaio                                              x86_64                       0.3.109-13.el7                                        base                                     24 k 
libblkid                                            x86_64                       2.23.2-26.el7_2.2                                     updates                                 166 k 
libcap-ng                                           x86_64                       0.7.5-4.el7                                           base                                     25 k 
libcurl                                             x86_64                       7.29.0-25.el7.centos                                  base                                    215 k 
libdb                                               x86_64                       5.3.21-19.el7                                         base                                    718 k 
libdb-utils                                         x86_64                       5.3.21-19.el7                                         base                                    102 k 
libdrm                                              x86_64                       2.4.60-3.el7                                          base                                    125 k 
libffi                                              x86_64                       3.0.13-16.el7                                         base                                     30 k 
libgcc                                              x86_64                       4.8.5-4.el7                                           base                                     95 k 
libgcrypt                                           x86_64                       1.5.3-12.el7_1.1                                      base                                    263 k 
libgomp                                             x86_64                       4.8.5-4.el7                                           base                                    130 k 
libgudev1                                           x86_64                       219-19.el7_2.7                                        updates                                  65 k 
libidn                                              x86_64                       1.28-4.el7                                            base                                    209 k 
libmount                                            x86_64                       2.23.2-26.el7_2.2                                     updates                                 169 k 
libnl3                                              x86_64                       3.2.21-10.el7                                         base                                    197 k 
libnl3-cli                                          x86_64                       3.2.21-10.el7                                         base                                     78 k 
libpcap                                             x86_64                       14:1.5.3-8.el7                                        base                                    138 k 
libpciaccess                                        x86_64                       0.13.4-2.el7                                          base                                     26 k 
libproxy                                            x86_64                       0.4.11-8.el7                                          base                                     64 k 
libsemanage                                         x86_64                       2.1.10-18.el7                                         base                                    123 k 
libsoup                                             x86_64                       2.48.1-3.el7                                          base                                    348 k 
libssh2                                             x86_64                       1.4.3-10.el7_2.1                                      updates                                 134 k 
libstdc++                                           x86_64                       4.8.5-4.el7                                           base                                    298 k 
libteam                                             x86_64                       1.17-6.el7_2                                          updates                                  45 k 
libuser                                             x86_64                       0.60-7.el7_1                                          base                                    398 k 
libuuid                                             x86_64                       2.23.2-26.el7_2.2                                     updates                                  74 k 
libxml2                                             x86_64                       2.9.1-6.el7_2.2                                       updates                                 666 k 
linux-firmware                                      noarch                       20150904-43.git6ebf5d5.el7                            base                                     24 M 
logrotate                                           x86_64                       3.8.6-7.el7_2                                         updates                                  66 k 
lvm2                                                x86_64                       7:2.02.130-5.el7_2.1                                  updates                                 1.0 M 
lvm2-libs                                           x86_64                       7:2.02.130-5.el7_2.1                                  updates                                 872 k 
lzo                                                 x86_64                       2.06-8.el7                                            base                                     59 k 
microcode_ctl                                       x86_64                       2:2.1-12.el7                                          base                                    535 k 
mozjs17                                             x86_64                       17.0.0-12.el7                                         base                                    1.4 M 
mysql-community-client                              x86_64                       5.6.30-2.el7                                          mysql56-community                        19 M 
mysql-community-common                              x86_64                       5.6.30-2.el7                                          mysql56-community                       256 k 
mysql-community-libs                                x86_64                       5.6.30-2.el7                                          mysql56-community                       2.0 M 
mysql-community-server                              x86_64                       5.6.30-2.el7                                          mysql56-community                        59 M 
nspr                                                x86_64                       4.10.8-2.el7_1                                        base                                    126 k 
nss                                                 x86_64                       3.19.1-19.el7_2                                       updates                                 852 k 
nss-softokn                                         x86_64                       3.16.2.3-13.el7_1                                     base                                    305 k 
nss-softokn-freebl                                  x86_64                       3.16.2.3-13.el7_1                                     base                                    204 k 
nss-sysinit                                         x86_64                       3.19.1-19.el7_2                                       updates                                  54 k 
nss-tools                                           x86_64                       3.19.1-19.el7_2                                       updates                                 484 k 
nss-util                                            x86_64                       3.19.1-9.el7_2                                        updates                                  71 k 
numactl-libs                                        x86_64                       2.0.9-6.el7_2                                         updates                                  29 k 
openldap                                            x86_64                       2.4.40-9.el7_2                                        updates                                 348 k 
openssh                                             x86_64                       6.6.1p1-25.el7_2                                      updates                                 435 k 
openssh-clients                                     x86_64                       6.6.1p1-25.el7_2                                      updates                                 639 k 
openssh-server                                      x86_64                       6.6.1p1-25.el7_2                                      updates                                 436 k 
openssl                                             x86_64                       1:1.0.1e-51.el7_2.4                                   updates                                 711 k 
openssl-libs                                        x86_64                       1:1.0.1e-51.el7_2.4                                   updates                                 951 k 
pam                                                 x86_64                       1.1.8-12.el7_1.1                                      base                                    714 k 
parted                                              x86_64                       3.1-23.el7                                            base                                    606 k 
pcre                                                x86_64                       8.32-15.el7                                           base                                    418 k 
perl                                                x86_64                       4:5.16.3-286.el7                                      base                                    8.0 M 
perl-Pod-Escapes                                    noarch                       1:1.04-286.el7                                        base                                     50 k 
perl-libs                                           x86_64                       4:5.16.3-286.el7                                      base                                    687 k 
perl-macros                                         x86_64                       4:5.16.3-286.el7                                      base                                     43 k 
plymouth                                            x86_64                       0.8.9-0.24.20140113.el7.centos                        base                                    114 k 
plymouth-core-libs                                  x86_64                       0.8.9-0.24.20140113.el7.centos                        base                                    106 k 
plymouth-scripts                                    x86_64                       0.8.9-0.24.20140113.el7.centos                        base                                     37 k 
policycoreutils                                     x86_64                       2.2.5-20.el7                                          base                                    803 k 
polkit                                              x86_64                       0.112-6.el7_2                                         updates                                 166 k 
procps-ng                                           x86_64                       3.3.10-5.el7_2                                        updates                                 287 k 
pth                                                 x86_64                       2.0.7-23.el7                                          base                                     89 k 
pygobject3-base                                     x86_64                       3.14.0-3.el7                                          base                                    285 k 
python                                              x86_64                       2.7.5-34.el7                                          base                                     88 k 
python-libs                                         x86_64                       2.7.5-34.el7                                          base                                    5.6 M 
python-pyudev                                       noarch                       0.15-7.el7_2.1                                        updates                                  54 k 
python-setuptools                                   noarch                       0.9.8-4.el7                                           base                                    396 k 
python-urlgrabber                                   noarch                       3.10-7.el7                                            base                                    107 k 
rdma                                                noarch                       7.2_4.1_rc6-2.el7                                     updates                                  28 k 
rpm                                                 x86_64                       4.11.3-17.el7                                         base                                    1.2 M 
rpm-build-libs                                      x86_64                       4.11.3-17.el7                                         base                                    103 k 
rpm-libs                                            x86_64                       4.11.3-17.el7                                         base                                    272 k 
rpm-python                                          x86_64                       4.11.3-17.el7                                         base                                     79 k 
rsyslog                                             x86_64                       7.4.7-12.el7                                          base                                    560 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 
setup                                               noarch                       2.8.71-6.el7                                          base                                    165 k 
shared-mime-info                                    x86_64                       1.1-9.el7                                             base                                    371 k 
sqlite                                              x86_64                       3.7.17-8.el7                                          base                                    393 k 
sudo                                                x86_64                       1.8.6p7-17.el7_2                                      updates                                 732 k 
systemd                                             x86_64                       219-19.el7_2.7                                        updates                                 5.1 M 
systemd-libs                                        x86_64                       219-19.el7_2.7                                        updates                                 357 k 
systemd-sysv                                        x86_64                       219-19.el7_2.7                                        updates                                  53 k 
teamd                                               x86_64                       1.17-6.el7_2                                          updates                                 109 k 
trousers                                            x86_64                       0.3.13-1.el7                                          base                                    289 k 
tuned                                               noarch                       2.5.1-4.el7_2.3                                       updates                                 193 k 
tzdata                                              noarch                       2016c-1.el7                                           updates                                 437 k 
util-linux                                          x86_64                       2.23.2-26.el7_2.2                                     updates                                 1.9 M 
virt-what                                           x86_64                       1.13-6.el7                                            base                                     27 k 
wpa_supplicant                                      x86_64                       1:2.0-17.el7_1                                        base                                    803 k 
xfsprogs                                            x86_64                       3.2.2-2.el7                                           base                                    863 k 
xz                                                  x86_64                       5.1.2-12alpha.el7                                     base                                    200 k 
xz-libs                                             x86_64                       5.1.2-12alpha.el7                                     base                                    102 k 
yum                                                 noarch                       3.4.3-132.el7.centos.0.1                              base                                    1.2 M 
yum-plugin-fastestmirror                            noarch                       1.1.31-34.el7                                         base                                     30 k 
zlib                                                x86_64                       1.2.7-15.el7                                          base                                     89 k 
为依赖而安装: 
lsscsi                                              x86_64                       0.27-3.el7                                            base                                     47 k 
python-perf                                         x86_64                       3.10.0-327.13.1.el7                                   updates                                 2.4 M 
 
事务概要 
====================================================================================================================================================================================== 
安装    1 软件包 (+2 依赖软件包) 
升级  192 软件包 
 
总下载量:274 M 
Is this ok [y/d/N]:  
输入y 安装吧
3:Add the yum repo

[root@MiWiFi-R1D-srv ~]# sudo tee /etc/yum.repos.d/docker.repo <<-'EOF' 
再输入

> [dockerrepo] 
> name=Docker Repository 
> baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/ 
> enabled=1 
> gpgcheck=1 
> gpgkey=https://yum.dockerproject.org/gpg 
> EOF 

[dockerrepo] 
name=Docker Repository 
baseurl=https://yum.dockerproject.org/repo/main/centos/$releasever/ 
enabled=1 
gpgcheck=1 
gpgkey=https://yum.dockerproject.org/gpg 

4.Install the Docker package.


[root@MiWiFi-R1D-srv ~]# sudo yum install docker-engine 
已加载插件:fastestmirror 
dockerrepo                                                                                                                                                     | 2.9 kB  00:00:00      
dockerrepo/7/primary_db                                                                                                                                        |  13 kB  00:00:01      
Loading mirror speeds from cached hostfile 
* base: mirrors.pubyun.com 
* extras: mirrors.163.com 
* updates: mirrors.163.com 
正在解决依赖关系 
--> 正在检查事务 
---> 软件包 docker-engine.x86_64.0.1.10.3-1.el7.centos 将被 安装 
--> 正在处理依赖关系 docker-engine-selinux >= 1.10.3-1.el7.centos,它被软件包 docker-engine-1.10.3-1.el7.centos.x86_64 需要 
--> 正在处理依赖关系 libcgroup,它被软件包 docker-engine-1.10.3-1.el7.centos.x86_64 需要 
--> 正在检查事务 
---> 软件包 docker-engine-selinux.noarch.0.1.10.3-1.el7.centos 将被 安装 
--> 正在处理依赖关系 policycoreutils-python,它被软件包 docker-engine-selinux-1.10.3-1.el7.centos.noarch 需要 
---> 软件包 libcgroup.x86_64.0.0.41-8.el7 将被 安装 
--> 正在检查事务 
---> 软件包 policycoreutils-python.x86_64.0.2.2.5-20.el7 将被 安装 
--> 正在处理依赖关系 libsemanage-python >= 2.1.10-1,它被软件包 policycoreutils-python-2.2.5-20.el7.x86_64 需要 
--> 正在处理依赖关系 audit-libs-python >= 2.1.3-4,它被软件包 policycoreutils-python-2.2.5-20.el7.x86_64 需要 
--> 正在处理依赖关系 python-IPy,它被软件包 policycoreutils-python-2.2.5-20.el7.x86_64 需要 
--> 正在处理依赖关系 libqpol.so.1(VERS_1.4)(64bit),它被软件包 policycoreutils-python-2.2.5-20.el7.x86_64 需要 
--> 正在处理依赖关系 libqpol.so.1(VERS_1.2)(64bit),它被软件包 policycoreutils-python-2.2.5-20.el7.x86_64 需要 
--> 正在处理依赖关系 libapol.so.4(VERS_4.0)(64bit),它被软件包 policycoreutils-python-2.2.5-20.el7.x86_64 需要 
--> 正在处理依赖关系 checkpolicy,它被软件包 policycoreutils-python-2.2.5-20.el7.x86_64 需要 
--> 正在处理依赖关系 libqpol.so.1()(64bit),它被软件包 policycoreutils-python-2.2.5-20.el7.x86_64 需要 
--> 正在处理依赖关系 libapol.so.4()(64bit),它被软件包 policycoreutils-python-2.2.5-20.el7.x86_64 需要 
--> 正在检查事务 
---> 软件包 audit-libs-python.x86_64.0.2.4.1-5.el7 将被 安装 
---> 软件包 checkpolicy.x86_64.0.2.1.12-6.el7 将被 安装 
---> 软件包 libsemanage-python.x86_64.0.2.1.10-18.el7 将被 安装 
---> 软件包 python-IPy.noarch.0.0.75-6.el7 将被 安装 
---> 软件包 setools-libs.x86_64.0.3.3.7-46.el7 将被 安装 
--> 解决依赖关系完成 
 
依赖关系解决 
 
====================================================================================================================================================================================== 
Package                                           架构                              版本                                           源                                           大小 
====================================================================================================================================================================================== 
正在安装: 
docker-engine                                     x86_64                            1.10.3-1.el7.centos                            docker-main-repo                            9.6 M 
为依赖而安装: 
audit-libs-python                                 x86_64                            2.4.1-5.el7                                    base                                         69 k 
checkpolicy                                       x86_64                            2.1.12-6.el7                                   base                                        247 k 
docker-engine-selinux                             noarch                            1.10.3-1.el7.centos                            docker-main-repo                             28 k 
libcgroup                                         x86_64                            0.41-8.el7                                     base                                         64 k 
libsemanage-python                                x86_64                            2.1.10-18.el7                                  base                                         94 k 
policycoreutils-python                            x86_64                            2.2.5-20.el7                                   base                                        435 k 
python-IPy                                        noarch                            0.75-6.el7                                     base                                         32 k 
setools-libs                                      x86_64                            3.3.7-46.el7                                   base                                        485 k 
 
事务概要 
====================================================================================================================================================================================== 
安装  1 软件包 (+8 依赖软件包) 
 
总计:11 M 
总下载量:9.6 M 
安装大小:45 M 
Is this ok [y/d/N]: y 
Downloading packages: 
Delta RPMs disabled because /usr/bin/applydeltarpm not installed. 
警告:/var/cache/yum/x86_64/7/docker-main-repo/packages/docker-engine-1.10.3-1.el7.centos.x86_64.rpm: 头V4 RSA/SHA512 Signature, 密钥 ID 2c52609d: NOKEY8 kB/s | 9.5 MB  00:00:00 ETA  
docker-engine-1.10.3-1.el7.centos.x86_64.rpm 的公钥尚未安装 
(1/2): docker-engine-1.10.3-1.el7.centos.x86_64.rpm                                                                                                            | 9.6 MB  00:00:13      
(2/2): docker-engine-selinux-1.10.3-1.el7.centos.noarch.rpm                                                                                                    |  28 kB  00:00:16      
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
总计                                                                                                                                                  604 kB/s | 9.6 MB  00:00:16      
从 https://yum.dockerproject.org/gpg 检索密钥 
导入 GPG key 0x2C52609D: 
用户ID     : "Docker Release Tool (releasedocker) <docker@docker.com>" 
指纹       : 5811 8e89 f3a9 1289 7c07 0adb f762 2157 2c52 609d 
来自       : https://yum.dockerproject.org/gpg 
是否继续?[y/N]:y 
Running transaction check 
Running transaction test 
Transaction test succeeded 
Running transaction 
  正在安装    : libcgroup-0.41-8.el7.x86_64                                                                                                                                       1/9  
  正在安装    : audit-libs-python-2.4.1-5.el7.x86_64                                                                                                                              2/9  
  正在安装    : libsemanage-python-2.1.10-18.el7.x86_64                                                                                                                           3/9  
  正在安装    : python-IPy-0.75-6.el7.noarch                                                                                                                                      4/9  
  正在安装    : checkpolicy-2.1.12-6.el7.x86_64                                                                                                                                   5/9  
  正在安装    : setools-libs-3.3.7-46.el7.x86_64                                                                                                                                  6/9  
  正在安装    : policycoreutils-python-2.2.5-20.el7.x86_64                                                                                                                        7/9  
  正在安装    : docker-engine-selinux-1.10.3-1.el7.centos.noarch                                                                                                                  8/9  
  正在安装    : docker-engine-1.10.3-1.el7.centos.x86_64                                                                                                                          9/9  
  验证中      : setools-libs-3.3.7-46.el7.x86_64                                                                                                                                  1/9  
  验证中      : libcgroup-0.41-8.el7.x86_64                                                                                                                                       2/9  
  验证中      : checkpolicy-2.1.12-6.el7.x86_64                                                                                                                                   3/9  
  验证中      : docker-engine-selinux-1.10.3-1.el7.centos.noarch                                                                                                                  4/9  
  验证中      : python-IPy-0.75-6.el7.noarch                                                                                                                                      5/9  
  验证中      : docker-engine-1.10.3-1.el7.centos.x86_64                                                                                                                          6/9  
  验证中      : libsemanage-python-2.1.10-18.el7.x86_64                                                                                                                           7/9  
  验证中      : policycoreutils-python-2.2.5-20.el7.x86_64                                                                                                                        8/9  
  验证中      : audit-libs-python-2.4.1-5.el7.x86_64                                                                                                                              9/9  
 
已安装: 
  docker-engine.x86_64 0:1.10.3-1.el7.centos                                                                                                                                           
 
作为依赖被安装: 
  audit-libs-python.x86_64 0:2.4.1-5.el7      checkpolicy.x86_64 0:2.1.12-6.el7              docker-engine-selinux.noarch 0:1.10.3-1.el7.centos   libcgroup.x86_64 0:0.41-8.el7        
  libsemanage-python.x86_64 0:2.1.10-18.el7   policycoreutils-python.x86_64 0:2.2.5-20.el7   python-IPy.noarch 0:0.75-6.el7                       setools-libs.x86_64 0:3.3.7-46.el7   
 
完毕! 

5.Start the Docker daemon.


[root@MiWiFi-R1D-srv ~]# sudo service docker start 
Redirecting to /bin/systemctl start  docker.service 
6.Verify docker is installed correctly by running a test image in a container

[root@MiWiFi-R1D-srv ~]# sudo docker run hello-world 
Unable to find image 'hello-world:latest' locally 
latest: Pulling from library/hello-world 
03f4658f8b78: Pull complete  
a3ed95caeb02: Pull complete  
Digest: sha256:8be990ef2aeb16dbcb9271ddfe2610fa6658d13f6dfb8bc72074cc1ca36966a7 
Status: Downloaded newer image for hello-world:latest 
 
Hello from Docker. 
This message shows that your installation appears to be working correctly. 
 
To generate this message, Docker took the following steps: 
1. The Docker client contacted the Docker daemon. 
2. The Docker daemon pulled the "hello-world" image from the Docker Hub. 
3. The Docker daemon created a new container from that image which runs the 
    executable that produces the output you are currently reading. 
4. The Docker daemon streamed that output to the Docker client, which sent it 
    to your terminal. 
 
To try something more ambitious, you can run an Ubuntu container with: 
$ docker run -it ubuntu bash 
 
Share images, automate workflows, and more with a free Docker Hub account: 
https://hub.docker.com 
 
For more examples and ideas, visit: 
https://docs.docker.com/userguide/ 

7.检查安装的版本

[root@MiWiFi-R1D-srv ~]# sudo docker version 
Client: 
Version:      1.10.3 
API version:  1.22 
Go version:   go1.5.3 
Git commit:   20f81dd 
Built:        Thu Mar 10 15:39:25 2016 
OS/Arch:      linux/amd64 
 
Server: 
Version:      1.10.3 
API version:  1.22 
Go version:   go1.5.3 
Git commit:   20f81dd 
Built:        Thu Mar 10 15:39:25 2016 
OS/Arch:      linux/amd64 

8.检查docker是否启动

[root@MiWiFi-R1D-srv ~]# sudo service docker status 
Redirecting to /bin/systemctl status  docker.service 
● docker.service - Docker Application Container Engine 
   Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled) 
   Active: active (running) since 四 2016-04-14 06:04:48 CST; 2min 47s ago 
     Docs: https://docs.docker.com 
Main PID: 31586 (docker) 
   CGroup: /system.slice/docker.service 
           └─31586 /usr/bin/docker daemon -H fd:// 
 
4月 14 06:04:48 MiWiFi-R1D-srv docker[31586]: time="2016-04-14T06:04:48.380260459+08:00" level=info msg="Graph migration to content-addressability took 0.00 seconds" 
4月 14 06:04:48 MiWiFi-R1D-srv docker[31586]: time="2016-04-14T06:04:48.401680046+08:00" level=info msg="Firewalld running: true" 
4月 14 06:04:48 MiWiFi-R1D-srv docker[31586]: time="2016-04-14T06:04:48.571004023+08:00" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17...IP address" 
4月 14 06:04:48 MiWiFi-R1D-srv docker[31586]: time="2016-04-14T06:04:48.876681099+08:00" level=info msg="Loading containers: start." 
4月 14 06:04:48 MiWiFi-R1D-srv docker[31586]: time="2016-04-14T06:04:48.876852415+08:00" level=info msg="Loading containers: done." 
4月 14 06:04:48 MiWiFi-R1D-srv docker[31586]: time="2016-04-14T06:04:48.876901171+08:00" level=info msg="Daemon has completed initialization" 
4月 14 06:04:48 MiWiFi-R1D-srv docker[31586]: time="2016-04-14T06:04:48.876947256+08:00" level=info msg="Docker daemon" commit=20f81dd execdriver=native-0.2 graphdrive...sion=1.10.3 
4月 14 06:04:48 MiWiFi-R1D-srv docker[31586]: time="2016-04-14T06:04:48.889700970+08:00" level=info msg="API listen on /var/run/docker.sock" 
4月 14 06:04:48 MiWiFi-R1D-srv systemd[1]: Started Docker Application Container Engine. 
4月 14 06:05:29 MiWiFi-R1D-srv docker[31586]: time="2016-04-14T06:05:29.540393803+08:00" level=error msg="Handler for POST /v1.22/containers/create returned error: No ...rld:latest" 
Hint: Some lines were ellipsized, use -l to show in full. 

9:检查本地下载的镜像

[root@MiWiFi-R1D-srv ~]# sudo docker images 
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE 
hello-world         latest              690ed74de00f        6 months ago        960 B 

10:检查运行的容器

[root@MiWiFi-R1D-srv ~]# sudo docker ps 
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES 


Install with the script
1:root用户登录
2:


$ sudo yum update 

3:Run the Docker installation script.

这个步骤有点区别,其他都和第一种方法一样


$ curl -fsSL https://get.docker.com/ | sh 

4.Start
the Docker daemon.


$ sudo service docker start 

5.Verify docker is installed correctly by running a test image in a container.


$ sudo docker run hello-world 

(责任编辑:IT)
------分隔线----------------------------
栏目列表
推荐内容