- 确认环境
[[email protected] ~]# cat /etc/redhat-release CentOS Linux release 7.0.1406 (Core)
- docker安装 -> 报错
[[email protected] ~]# yum install docker Loaded plugins: fastestmirror, langpacks Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast Existing lock /var/run/yum.pid: another copy is running as pid 11946. Another app is currently holding the yum lock; waiting for it to exit... The other application is: PackageKit Memory : 39 M RSS (444 MB VSZ) Started: Thu Jul 7 22:42:13 2016 - 08:57 ago State : Sleeping, pid: 11946
- 解决方法
rm -rf /run/yum.pid
[[email protected] run]# rm -rf /run/yum.pid
- 继续docker安装 -> 报错
[[email protected] run]# yum install docker Loaded plugins: fastestmirror, langpacks 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 updates | 3.4 kB 00:00:00 (1/2): extras/7/x86_64/primary_db | 149 kB 00:00:00 (2/2): updates/7/x86_64/primary_db | 5.7 MB 00:00:47 Determining fastest mirrors * base: mirrors.163.com * extras: mirrors.163.com * updates: mirrors.163.com Resolving Dependencies --> Running transaction check ---> Package docker.x86_64 0:1.10.3-44.el7.centos will be installed --> Processing Dependency: oci-systemd-hook = 1.10.3-44.el7.centos for package: docker-1.10.3-44.el7.centos.x86_64 --> Processing Dependency: oci-register-machine = 1.10.3-44.el7.centos for package: docker-1.10.3-44.el7.centos.x86_64 --> Processing Dependency: docker-forward-journald = 1.10.3-44.el7.centos for package: docker-1.10.3-44.el7.centos.x86_64 --> Processing Dependency: docker-common = 1.10.3-44.el7.centos for package: docker-1.10.3-44.el7.centos.x86_64 --> Processing Dependency: selinux-policy >= 3.13.1-23 for package: docker-1.10.3-44.el7.centos.x86_64 --> Processing Dependency: docker-selinux >= 1.10.3-44.el7.centos for package: docker-1.10.3-44.el7.centos.x86_64 --> Processing Dependency: device-mapper-libs >= 7:1.02.97 for package: docker-1.10.3-44.el7.centos.x86_64 --> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: docker-1.10.3-44.el7.centos.x86_64 --> Processing Dependency: libdevmapper.so.1.02(DM_1_02_97)(64bit) for package: docker-1.10.3-44.el7.centos.x86_64 --> Processing Dependency: libsystemd.so.0()(64bit) for package: docker-1.10.3-44.el7.centos.x86_64 --> Running transaction check ---> Package device-mapper-libs.x86_64 7:1.02.84-14.el7 will be updated --> Processing Dependency: device-mapper-libs = 7:1.02.84-14.el7 for package: 7:device-mapper-1.02.84-14.el7.x86_64 ---> Package device-mapper-libs.x86_64 7:1.02.107-5.el7_2.5 will be an update ---> Package docker-common.x86_64 0:1.10.3-44.el7.centos will be installed ---> Package docker-forward-journald.x86_64 0:1.10.3-44.el7.centos will be installed ---> Package docker-selinux.x86_64 0:1.10.3-44.el7.centos will be installed --> Processing Dependency: selinux-policy-targeted >= 3.13.1-23 for package: docker-selinux-1.10.3-44.el7.centos.x86_64 --> Processing Dependency: selinux-policy-base >= 3.13.1-23 for package: docker-selinux-1.10.3-44.el7.centos.x86_64 ---> Package oci-register-machine.x86_64 0:1.10.3-44.el7.centos will be installed ---> Package oci-systemd-hook.x86_64 0:1.10.3-44.el7.centos will be installed ---> Package selinux-policy.noarch 0:3.12.1-153.el7 will be updated ---> Package selinux-policy.noarch 0:3.13.1-60.el7_2.7 will be an update ---> Package systemd-libs.x86_64 0:208-11.el7 will be updated --> Processing Dependency: systemd-libs = 208-11.el7 for package: systemd-208-11.el7.x86_64 ---> Package systemd-libs.x86_64 0:219-19.el7_2.11 will be an update --> Running transaction check ---> Package device-mapper.x86_64 7:1.02.84-14.el7 will be updated --> Processing Dependency: device-mapper = 7:1.02.84-14.el7 for package: 7:device-mapper-event-1.02.84-14.el7.x86_64 ---> Package device-mapper.x86_64 7:1.02.107-5.el7_2.5 will be an update ---> Package selinux-policy-targeted.noarch 0:3.12.1-153.el7 will be updated ---> Package selinux-policy-targeted.noarch 0:3.13.1-60.el7_2.7 will be an update ---> Package systemd.x86_64 0:208-11.el7 will be updated --> Processing Dependency: systemd = 208-11.el7 for package: libgudev1-208-11.el7.x86_64 --> Processing Dependency: systemd = 208-11.el7 for package: systemd-sysv-208-11.el7.x86_64 --> Processing Dependency: systemd = 208-11.el7 for package: systemd-python-208-11.el7.x86_64 ---> Package systemd.x86_64 0:219-19.el7_2.11 will be an update --> Processing Dependency: kmod >= 18-4 for package: systemd-219-19.el7_2.11.x86_64 --> Running transaction check ---> Package device-mapper-event.x86_64 7:1.02.84-14.el7 will be updated ---> Package device-mapper-event.x86_64 7:1.02.107-5.el7_2.5 will be an update --> Processing Dependency: device-mapper-event-libs = 7:1.02.107-5.el7_2.5 for package: 7:device-mapper-event-1.02.107-5.el7_2.5.x86_64 ---> Package kmod.x86_64 0:14-9.el7 will be updated ---> Package kmod.x86_64 0:20-5.el7 will be an update ---> Package libgudev1.x86_64 0:208-11.el7 will be updated ---> Package libgudev1.x86_64 0:219-19.el7_2.11 will be an update ---> Package systemd-python.x86_64 0:208-11.el7 will be updated ---> Package systemd-python.x86_64 0:219-19.el7_2.11 will be an update ---> Package systemd-sysv.x86_64 0:208-11.el7 will be updated ---> Package systemd-sysv.x86_64 0:219-19.el7_2.11 will be an update --> Running transaction check ---> Package device-mapper-event-libs.x86_64 7:1.02.84-14.el7 will be updated ---> Package device-mapper-event-libs.x86_64 7:1.02.107-5.el7_2.5 will be an update --> Processing Conflict: systemd-219-19.el7_2.11.x86_64 conflicts initscripts < 9.49.28-1 --> Restarting Dependency Resolution with new changes. --> Running transaction check ---> Package initscripts.x86_64 0:9.49.17-1.el7 will be updated ---> Package initscripts.x86_64 0:9.49.30-1.el7_2.2 will be an update --> Processing Conflict: systemd-219-19.el7_2.11.x86_64 conflicts dracut < 033-243 --> Restarting Dependency Resolution with new changes. --> Running transaction check ---> Package dracut.x86_64 0:033-161.el7 will be updated --> Processing Dependency: dracut = 033-161.el7 for package: dracut-config-rescue-033-161.el7.x86_64 --> Processing Dependency: dracut = 033-161.el7 for package: dracut-network-033-161.el7.x86_64 ---> Package dracut.x86_64 0:033-360.el7_2.1 will be an update --> Running transaction check ---> Package dracut-config-rescue.x86_64 0:033-161.el7 will be updated ---> Package dracut-config-rescue.x86_64 0:033-360.el7_2.1 will be an update ---> Package dracut-network.x86_64 0:033-161.el7 will be updated ---> Package dracut-network.x86_64 0:033-360.el7_2.1 will be an update --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================ Package Arch Version Repository Size ============================================================================================================================================ Installing: docker x86_64 1.10.3-44.el7.centos extras 8.6 M Updating: dracut x86_64 033-360.el7_2.1 updates 311 k initscripts x86_64 9.49.30-1.el7_2.2 updates 429 k Installing for dependencies: docker-common x86_64 1.10.3-44.el7.centos extras 59 k docker-forward-journald x86_64 1.10.3-44.el7.centos extras 831 k docker-selinux x86_64 1.10.3-44.el7.centos extras 77 k oci-register-machine x86_64 1.10.3-44.el7.centos extras 1.0 M oci-systemd-hook x86_64 1.10.3-44.el7.centos extras 96 k Updating for dependencies: device-mapper x86_64 7:1.02.107-5.el7_2.5 updates 252 k device-mapper-event x86_64 7:1.02.107-5.el7_2.5 updates 167 k device-mapper-event-libs x86_64 7:1.02.107-5.el7_2.5 updates 169 k device-mapper-libs x86_64 7:1.02.107-5.el7_2.5 updates 305 k dracut-config-rescue x86_64 033-360.el7_2.1 updates 50 k dracut-network x86_64 033-360.el7_2.1 updates 90 k kmod x86_64 20-5.el7 base 114 k libgudev1 x86_64 219-19.el7_2.11 updates 66 k selinux-policy noarch 3.13.1-60.el7_2.7 updates 376 k selinux-policy-targeted noarch 3.13.1-60.el7_2.7 updates 3.9 M systemd x86_64 219-19.el7_2.11 updates 5.1 M systemd-libs x86_64 219-19.el7_2.11 updates 358 k systemd-python x86_64 219-19.el7_2.11 updates 99 k systemd-sysv x86_64 219-19.el7_2.11 updates 53 k Transaction Summary ============================================================================================================================================ Install 1 Package (+ 5 Dependent packages) Upgrade 2 Packages (+14 Dependent packages) Total download size: 23 M Is this ok [y/d/N]: y Downloading packages: No Presto metadata available for base updates/7/x86_64/prestodelta | 603 kB 00:00:00 warning: /var/cache/yum/x86_64/7/updates/packages/device-mapper-1.02.107-5.el7_2.5.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY Public key for device-mapper-1.02.107-5.el7_2.5.x86_64.rpm is not installed (1/22): device-mapper-1.02.107-5.el7_2.5.x86_64.rpm | 252 kB 00:00:00 (2/22): device-mapper-event-libs-1.02.107-5.el7_2.5.x86_64.rpm | 169 kB 00:00:00 Public key for docker-forward-journald-1.10.3-44.el7.centos.x86_64.rpm is not installed ] 0.0 B/s | 1.2 MB --:--:-- ETA (3/22): docker-forward-journald-1.10.3-44.el7.centos.x86_64.rpm | 831 kB 00:00:00 (4/22): docker-selinux-1.10.3-44.el7.centos.x86_64.rpm | 77 kB 00:00:00 (5/22): docker-common-1.10.3-44.el7.centos.x86_64.rpm | 59 kB 00:00:00 (6/22): dracut-033-360.el7_2.1.x86_64.rpm | 311 kB 00:00:00 (7/22): dracut-network-033-360.el7_2.1.x86_64.rpm | 90 kB 00:00:00 (8/22): device-mapper-event-1.02.107-5.el7_2.5.x86_64.rpm | 167 kB 00:00:01 (9/22): initscripts-9.49.30-1.el7_2.2.x86_64.rpm | 429 kB 00:00:00 Public key for kmod-20-5.el7.x86_64.rpm is not installed (10/22): kmod-20-5.el7.x86_64.rpm | 114 kB 00:00:00 (11/22): libgudev1-219-19.el7_2.11.x86_64.rpm | 66 kB 00:00:00 (12/22): oci-systemd-hook-1.10.3-44.el7.centos.x86_64.rpm | 96 kB 00:00:00 (13/22): device-mapper-libs-1.02.107-5.el7_2.5.x86_64.rpm | 305 kB 00:00:01 (14/22): selinux-policy-3.13.1-60.el7_2.7.noarch.rpm | 376 kB 00:00:00 (15/22): dracut-config-rescue-033-360.el7_2.1.x86_64.rpm | 50 kB 00:00:00 (16/22): systemd-libs-219-19.el7_2.11.x86_64.rpm | 358 kB 00:00:02 (17/22): docker-1.10.3-44.el7.centos.x86_64.rpm | 8.6 MB 00:00:03 (18/22): systemd-python-219-19.el7_2.11.x86_64.rpm | 99 kB 00:00:00 (19/22): systemd-sysv-219-19.el7_2.11.x86_64.rpm | 53 kB 00:00:00 (20/22): oci-register-machine-1.10.3-44.el7.centos.x86_64.rpm | 1.0 MB 00:00:03 (21/22): selinux-policy-targeted-3.13.1-60.el7_2.7.noarch.rpm | 3.9 MB 00:00:03 (22/22): systemd-219-19.el7_2.11.x86_64.rpm | 5.1 MB 00:00:05 -------------------------------------------------------------------------------------------------------------------------------------------- Total 3.1 MB/s | 23 MB 00:00:07 Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Importing GPG key 0xF4A80EB5: Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <[email protected]>" Fingerprint: 6341 ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5 Package : centos-release-7-0.1406.el7.centos.2.3.x86_64 (@anaconda) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 Is this ok [y/N]: y 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.5.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.5.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.5.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64 Error Summary -------------
- 解决方法
yum install libdevmapper* -y
[[email protected] run]# yum install libdevmapper* -y Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirrors.163.com * extras: mirrors.163.com * updates: mirrors.163.com Resolving Dependencies --> Running transaction check ---> Package device-mapper-event-libs.x86_64 7:1.02.84-14.el7 will be updated --> Processing Dependency: device-mapper-event-libs = 7:1.02.84-14.el7 for package: 7:device-mapper-event-1.02.84-14.el7.x86_64 ---> Package device-mapper-event-libs.x86_64 7:1.02.107-5.el7_2.5 will be an update ---> Package device-mapper-libs.x86_64 7:1.02.84-14.el7 will be updated --> Processing Dependency: device-mapper-libs = 7:1.02.84-14.el7 for package: 7:device-mapper-1.02.84-14.el7.x86_64 ---> Package device-mapper-libs.x86_64 7:1.02.107-5.el7_2.5 will be an update ---> Package lvm2-libs.x86_64 7:2.02.105-14.el7 will be updated --> Processing Dependency: lvm2-libs = 7:2.02.105-14.el7 for package: 7:lvm2-2.02.105-14.el7.x86_64 ---> Package lvm2-libs.x86_64 7:2.02.130-5.el7_2.5 will be an update --> Running transaction check ---> Package device-mapper.x86_64 7:1.02.84-14.el7 will be updated ---> Package device-mapper.x86_64 7:1.02.107-5.el7_2.5 will be an update ---> Package device-mapper-event.x86_64 7:1.02.84-14.el7 will be updated ---> Package device-mapper-event.x86_64 7:1.02.107-5.el7_2.5 will be an update ---> Package lvm2.x86_64 7:2.02.105-14.el7 will be updated ---> Package lvm2.x86_64 7:2.02.130-5.el7_2.5 will be an update --> Processing Dependency: device-mapper-persistent-data >= 0.5.5-1 for package: 7:lvm2-2.02.130-5.el7_2.5.x86_64 --> Running transaction check ---> Package device-mapper-persistent-data.x86_64 0:0.3.2-1.el7 will be updated ---> Package device-mapper-persistent-data.x86_64 0:0.5.5-1.el7 will be an update --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================ Package Arch Version Repository Size ============================================================================================================================================ Updating: device-mapper-event-libs x86_64 7:1.02.107-5.el7_2.5 updates 169 k device-mapper-libs x86_64 7:1.02.107-5.el7_2.5 updates 305 k lvm2-libs x86_64 7:2.02.130-5.el7_2.5 updates 873 k Updating for dependencies: device-mapper x86_64 7:1.02.107-5.el7_2.5 updates 252 k device-mapper-event x86_64 7:1.02.107-5.el7_2.5 updates 167 k device-mapper-persistent-data x86_64 0.5.5-1.el7 base 350 k lvm2 x86_64 7:2.02.130-5.el7_2.5 updates 1.0 M Transaction Summary ============================================================================================================================================ Upgrade 3 Packages (+4 Dependent packages) Total size: 3.0 M Total download size: 2.2 M Downloading packages: No Presto metadata available for base (1/3): device-mapper-persistent-data-0.5.5-1.el7.x86_64.rpm | 350 kB 00:00:00 (2/3): lvm2-2.02.130-5.el7_2.5.x86_64.rpm | 1.0 MB 00:00:00 (3/3): lvm2-libs-2.02.130-5.el7_2.5.x86_64.rpm | 873 kB 00:00:11 -------------------------------------------------------------------------------------------------------------------------------------------- Total 195 kB/s | 2.2 MB 00:00:11 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : 7:device-mapper-1.02.107-5.el7_2.5.x86_64 1/14 Updating : 7:device-mapper-libs-1.02.107-5.el7_2.5.x86_64 2/14 Updating : 7:device-mapper-event-libs-1.02.107-5.el7_2.5.x86_64 3/14 Updating : 7:device-mapper-event-1.02.107-5.el7_2.5.x86_64 4/14 Updating : 7:lvm2-libs-2.02.130-5.el7_2.5.x86_64 5/14 Updating : device-mapper-persistent-data-0.5.5-1.el7.x86_64 6/14 Updating : 7:lvm2-2.02.130-5.el7_2.5.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‘ Cleanup : 7:lvm2-2.02.105-14.el7.x86_64 8/14 Cleanup : 7:lvm2-libs-2.02.105-14.el7.x86_64 9/14 Cleanup : 7:device-mapper-event-1.02.84-14.el7.x86_64 10/14 Cleanup : 7:device-mapper-event-libs-1.02.84-14.el7.x86_64 11/14 Cleanup : 7:device-mapper-1.02.84-14.el7.x86_64 12/14 Cleanup : 7:device-mapper-libs-1.02.84-14.el7.x86_64 13/14 Cleanup : device-mapper-persistent-data-0.3.2-1.el7.x86_64 14/14 Verifying : 7:device-mapper-libs-1.02.107-5.el7_2.5.x86_64 1/14 Verifying : 7:device-mapper-1.02.107-5.el7_2.5.x86_64 2/14 Verifying : 7:lvm2-2.02.130-5.el7_2.5.x86_64 3/14 Verifying : device-mapper-persistent-data-0.5.5-1.el7.x86_64 4/14 Verifying : 7:lvm2-libs-2.02.130-5.el7_2.5.x86_64 5/14 Verifying : 7:device-mapper-event-libs-1.02.107-5.el7_2.5.x86_64 6/14 Verifying : 7:device-mapper-event-1.02.107-5.el7_2.5.x86_64 7/14 Verifying : 7:lvm2-2.02.105-14.el7.x86_64 8/14 Verifying : device-mapper-persistent-data-0.3.2-1.el7.x86_64 9/14 Verifying : 7:lvm2-libs-2.02.105-14.el7.x86_64 10/14 Verifying : 7:device-mapper-event-libs-1.02.84-14.el7.x86_64 11/14 Verifying : 7:device-mapper-libs-1.02.84-14.el7.x86_64 12/14 Verifying : 7:device-mapper-event-1.02.84-14.el7.x86_64 13/14 Verifying : 7:device-mapper-1.02.84-14.el7.x86_64 14/14 Updated: device-mapper-event-libs.x86_64 7:1.02.107-5.el7_2.5 device-mapper-libs.x86_64 7:1.02.107-5.el7_2.5 lvm2-libs.x86_64 7:2.02.130-5.el7_2.5 Dependency Updated: device-mapper.x86_64 7:1.02.107-5.el7_2.5 device-mapper-event.x86_64 7:1.02.107-5.el7_2.5 device-mapper-persistent-data.x86_64 0:0.5.5-1.el7 lvm2.x86_64 7:2.02.130-5.el7_2.5 Complete!
- 继续docker安装 -> 成功
[[email protected] run]# yum install docker Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirrors.163.com * extras: mirrors.163.com * updates: mirrors.163.com Resolving Dependencies --> Running transaction check ---> Package docker.x86_64 0:1.10.3-44.el7.centos will be installed --> Processing Dependency: oci-systemd-hook = 1.10.3-44.el7.centos for package: docker-1.10.3-44.el7.centos.x86_64 --> Processing Dependency: oci-register-machine = 1.10.3-44.el7.centos for package: docker-1.10.3-44.el7.centos.x86_64 --> Processing Dependency: docker-forward-journald = 1.10.3-44.el7.centos for package: docker-1.10.3-44.el7.centos.x86_64 --> Processing Dependency: docker-common = 1.10.3-44.el7.centos for package: docker-1.10.3-44.el7.centos.x86_64 --> Processing Dependency: selinux-policy >= 3.13.1-23 for package: docker-1.10.3-44.el7.centos.x86_64 --> Processing Dependency: docker-selinux >= 1.10.3-44.el7.centos for package: docker-1.10.3-44.el7.centos.x86_64 --> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: docker-1.10.3-44.el7.centos.x86_64 --> Processing Dependency: libsystemd.so.0()(64bit) for package: docker-1.10.3-44.el7.centos.x86_64 --> Running transaction check ---> Package docker-common.x86_64 0:1.10.3-44.el7.centos will be installed ---> Package docker-forward-journald.x86_64 0:1.10.3-44.el7.centos will be installed ---> Package docker-selinux.x86_64 0:1.10.3-44.el7.centos will be installed --> Processing Dependency: selinux-policy-targeted >= 3.13.1-23 for package: docker-selinux-1.10.3-44.el7.centos.x86_64 --> Processing Dependency: selinux-policy-base >= 3.13.1-23 for package: docker-selinux-1.10.3-44.el7.centos.x86_64 ---> Package oci-register-machine.x86_64 0:1.10.3-44.el7.centos will be installed ---> Package oci-systemd-hook.x86_64 0:1.10.3-44.el7.centos will be installed ---> Package selinux-policy.noarch 0:3.12.1-153.el7 will be updated ---> Package selinux-policy.noarch 0:3.13.1-60.el7_2.7 will be an update ---> Package systemd-libs.x86_64 0:208-11.el7 will be updated --> Processing Dependency: systemd-libs = 208-11.el7 for package: systemd-208-11.el7.x86_64 ---> Package systemd-libs.x86_64 0:219-19.el7_2.11 will be an update --> Running transaction check ---> Package selinux-policy-targeted.noarch 0:3.12.1-153.el7 will be updated ---> Package selinux-policy-targeted.noarch 0:3.13.1-60.el7_2.7 will be an update ---> Package systemd.x86_64 0:208-11.el7 will be updated --> Processing Dependency: systemd = 208-11.el7 for package: libgudev1-208-11.el7.x86_64 --> Processing Dependency: systemd = 208-11.el7 for package: systemd-python-208-11.el7.x86_64 --> Processing Dependency: systemd = 208-11.el7 for package: systemd-sysv-208-11.el7.x86_64 ---> Package systemd.x86_64 0:219-19.el7_2.11 will be an update --> Processing Dependency: kmod >= 18-4 for package: systemd-219-19.el7_2.11.x86_64 --> Running transaction check ---> Package kmod.x86_64 0:14-9.el7 will be updated ---> Package kmod.x86_64 0:20-5.el7 will be an update ---> Package libgudev1.x86_64 0:208-11.el7 will be updated ---> Package libgudev1.x86_64 0:219-19.el7_2.11 will be an update ---> Package systemd-python.x86_64 0:208-11.el7 will be updated ---> Package systemd-python.x86_64 0:219-19.el7_2.11 will be an update ---> Package systemd-sysv.x86_64 0:208-11.el7 will be updated ---> Package systemd-sysv.x86_64 0:219-19.el7_2.11 will be an update --> Processing Conflict: systemd-219-19.el7_2.11.x86_64 conflicts initscripts < 9.49.28-1 --> Restarting Dependency Resolution with new changes. --> Running transaction check ---> Package initscripts.x86_64 0:9.49.17-1.el7 will be updated ---> Package initscripts.x86_64 0:9.49.30-1.el7_2.2 will be an update --> Processing Conflict: systemd-219-19.el7_2.11.x86_64 conflicts dracut < 033-243 --> Restarting Dependency Resolution with new changes. --> Running transaction check ---> Package dracut.x86_64 0:033-161.el7 will be updated --> Processing Dependency: dracut = 033-161.el7 for package: dracut-config-rescue-033-161.el7.x86_64 --> Processing Dependency: dracut = 033-161.el7 for package: dracut-network-033-161.el7.x86_64 ---> Package dracut.x86_64 0:033-360.el7_2.1 will be an update --> Running transaction check ---> Package dracut-config-rescue.x86_64 0:033-161.el7 will be updated ---> Package dracut-config-rescue.x86_64 0:033-360.el7_2.1 will be an update ---> Package dracut-network.x86_64 0:033-161.el7 will be updated ---> Package dracut-network.x86_64 0:033-360.el7_2.1 will be an update --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================ Package Arch Version Repository Size ============================================================================================================================================ Installing: docker x86_64 1.10.3-44.el7.centos extras 8.6 M Updating: dracut x86_64 033-360.el7_2.1 updates 311 k initscripts x86_64 9.49.30-1.el7_2.2 updates 429 k Installing for dependencies: docker-common x86_64 1.10.3-44.el7.centos extras 59 k docker-forward-journald x86_64 1.10.3-44.el7.centos extras 831 k docker-selinux x86_64 1.10.3-44.el7.centos extras 77 k oci-register-machine x86_64 1.10.3-44.el7.centos extras 1.0 M oci-systemd-hook x86_64 1.10.3-44.el7.centos extras 96 k Updating for dependencies: dracut-config-rescue x86_64 033-360.el7_2.1 updates 50 k dracut-network x86_64 033-360.el7_2.1 updates 90 k kmod x86_64 20-5.el7 base 114 k libgudev1 x86_64 219-19.el7_2.11 updates 66 k selinux-policy noarch 3.13.1-60.el7_2.7 updates 376 k selinux-policy-targeted noarch 3.13.1-60.el7_2.7 updates 3.9 M systemd x86_64 219-19.el7_2.11 updates 5.1 M systemd-libs x86_64 219-19.el7_2.11 updates 358 k systemd-python x86_64 219-19.el7_2.11 updates 99 k systemd-sysv x86_64 219-19.el7_2.11 updates 53 k Transaction Summary ============================================================================================================================================ Install 1 Package (+ 5 Dependent packages) Upgrade 2 Packages (+10 Dependent packages) Total size: 22 M Is this ok [y/d/N]: y Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : systemd-libs-219-19.el7_2.11.x86_64 1/30 Updating : dracut-033-360.el7_2.1.x86_64 2/30 Updating : kmod-20-5.el7.x86_64 3/30 Updating : systemd-219-19.el7_2.11.x86_64 4/30 Updating : selinux-policy-3.13.1-60.el7_2.7.noarch 5/30 Updating : selinux-policy-targeted-3.13.1-60.el7_2.7.noarch 6/30 140k Installing : docker-selinux-1.10.3-44.el7.centos.x86_64 7/30 Installing : oci-register-machine-1.10.3-44.el7.centos.x86_64 8/30 Installing : docker-forward-journald-1.10.3-44.el7.centos.x86_64 9/30 Installing : docker-common-1.10.3-44.el7.centos.x86_64 10/30 Installing : oci-systemd-hook-1.10.3-44.el7.centos.x86_64 11/30 Installing : docker-1.10.3-44.el7.centos.x86_64 12/30 Updating : initscripts-9.49.30-1.el7_2.2.x86_64 13/30 Updating : systemd-sysv-219-19.el7_2.11.x86_64 14/30 Updating : systemd-python-219-19.el7_2.11.x86_64 15/30 Updating : dracut-config-rescue-033-360.el7_2.1.x86_64 16/30 Updating : dracut-network-033-360.el7_2.1.x86_64 17/30 Updating : libgudev1-219-19.el7_2.11.x86_64 18/30 Cleanup : selinux-policy-targeted-3.12.1-153.el7.noarch 19/30 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 Cleanup : systemd-sysv-208-11.el7.x86_64 20/30 Cleanup : dracut-network-033-161.el7.x86_64 21/30 Cleanup : dracut-config-rescue-033-161.el7.x86_64 22/30 Cleanup : dracut-033-161.el7.x86_64 23/30 Cleanup : systemd-python-208-11.el7.x86_64 24/30 Cleanup : libgudev1-208-11.el7.x86_64 25/30 Cleanup : initscripts-9.49.17-1.el7.x86_64 26/30 Cleanup : selinux-policy-3.12.1-153.el7.noarch 27/30 Cleanup : systemd-208-11.el7.x86_64 28/30 Cleanup : kmod-14-9.el7.x86_64 29/30 Cleanup : systemd-libs-208-11.el7.x86_64 30/30 Verifying : dracut-config-rescue-033-360.el7_2.1.x86_64 1/30 Verifying : initscripts-9.49.30-1.el7_2.2.x86_64 2/30 Verifying : dracut-network-033-360.el7_2.1.x86_64 3/30 Verifying : oci-systemd-hook-1.10.3-44.el7.centos.x86_64 4/30 Verifying : kmod-20-5.el7.x86_64 5/30 Verifying : libgudev1-219-19.el7_2.11.x86_64 6/30 Verifying : selinux-policy-3.13.1-60.el7_2.7.noarch 7/30 Verifying : docker-selinux-1.10.3-44.el7.centos.x86_64 8/30 Verifying : systemd-libs-219-19.el7_2.11.x86_64 9/30 Verifying : dracut-033-360.el7_2.1.x86_64 10/30 Verifying : systemd-219-19.el7_2.11.x86_64 11/30 Verifying : docker-common-1.10.3-44.el7.centos.x86_64 12/30 Verifying : docker-1.10.3-44.el7.centos.x86_64 13/30 Verifying : systemd-sysv-219-19.el7_2.11.x86_64 14/30 Verifying : docker-forward-journald-1.10.3-44.el7.centos.x86_64 15/30 Verifying : systemd-python-219-19.el7_2.11.x86_64 16/30 Verifying : selinux-policy-targeted-3.13.1-60.el7_2.7.noarch 17/30 Verifying : oci-register-machine-1.10.3-44.el7.centos.x86_64 18/30 Verifying : dracut-config-rescue-033-161.el7.x86_64 19/30 Verifying : kmod-14-9.el7.x86_64 20/30 Verifying : systemd-python-208-11.el7.x86_64 21/30 Verifying : selinux-policy-3.12.1-153.el7.noarch 22/30 Verifying : dracut-network-033-161.el7.x86_64 23/30 Verifying : systemd-sysv-208-11.el7.x86_64 24/30 Verifying : dracut-033-161.el7.x86_64 25/30 Verifying : initscripts-9.49.17-1.el7.x86_64 26/30 Verifying : systemd-libs-208-11.el7.x86_64 27/30 Verifying : systemd-208-11.el7.x86_64 28/30 Verifying : selinux-policy-targeted-3.12.1-153.el7.noarch 29/30 Verifying : libgudev1-208-11.el7.x86_64 30/30 Installed: docker.x86_64 0:1.10.3-44.el7.centos Dependency Installed: docker-common.x86_64 0:1.10.3-44.el7.centos docker-forward-journald.x86_64 0:1.10.3-44.el7.centos docker-selinux.x86_64 0:1.10.3-44.el7.centos oci-register-machine.x86_64 0:1.10.3-44.el7.centos oci-systemd-hook.x86_64 0:1.10.3-44.el7.centos Updated: dracut.x86_64 0:033-360.el7_2.1 initscripts.x86_64 0:9.49.30-1.el7_2.2 Dependency Updated: dracut-config-rescue.x86_64 0:033-360.el7_2.1 dracut-network.x86_64 0:033-360.el7_2.1 kmod.x86_64 0:20-5.el7 libgudev1.x86_64 0:219-19.el7_2.11 selinux-policy.noarch 0:3.13.1-60.el7_2.7 selinux-policy-targeted.noarch 0:3.13.1-60.el7_2.7 systemd.x86_64 0:219-19.el7_2.11 systemd-libs.x86_64 0:219-19.el7_2.11 systemd-python.x86_64 0:219-19.el7_2.11 systemd-sysv.x86_64 0:219-19.el7_2.11 Complete!
- 查看docker版本信息
docker version
[[email protected] run]# docker version Client: Version: 1.10.3 API version: 1.22 Package version: docker-common-1.10.3-44.el7.centos.x86_64 Go version: go1.4.2 Git commit: 9419b24-unsupported Built: Fri Jun 24 12:09:49 2016 OS/Arch: linux/amd64 Cannot connect to the Docker daemon. Is the docker daemon running on this host?
时间: 2024-10-17 21:33:15