CentOS7安装Docker时的异常报错与解决方法

  • 确认环境
[[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

CentOS7安装Docker时的异常报错与解决方法的相关文章

20170514002Oracle 11g R2安装过程中遇到的报错及解决办法

Oracle 11g R2安装过程中遇到的报错及解决办法 1.提示Check if the DISPLAYvariable is set.    Failed<<<< 解决方案: #xhost +  //切换到root用户输入 #su – Oracle  //切换到oracle用户 $./runInstaller  //执行安装程序 xhost 是用来控制X server访问权限的. 通常当你从hostA登陆到hostB上运行hostB上的应用程序时, 做为应用程序来说,hostA

Linux安装ElasticSearch启动报错的解决方法

Linux安装ElasticSearch后,ElasticSearch是不能用root用户启动的,以root用户启动会报错Refer to the log for complete error details,出现这种情况该如何解决呢?下面小编就为大家带来Linux安装ElasticSearch启动报错的解决方法,一起去看看吧 今天就出现的异常问题专门解决一下.你安装好ElasticSearch以后,在启动的时候需要注意的问题是,ElasticSearch是不能用root用户启动的(这是根据el

Linux---RPM安装报错以及解决方法

安装Samba服务器时候使用CD挂载安装的,结果遇到如下报错 not an rpm package (or package manifest):Input/output error                   //报错信息 解决方法:重新下载新的RPM安装包,原因是因为RPM包有损坏,多发生在挂在CD的情况下 下载RPM包地址 http://rpm.pbone.net/

腾讯云二进制包安装mysql报错及其解决方法

报错及其解决方法:-bash:mysql: command not found [[email protected] mysql]# ./scripts/mysql_install_db   --user=mysql --datadir=/mydata/data Installing MySQL system tables... ./bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared 

svn“Previous operation has not finished; run &#39;cleanup&#39; if it was interrupted“报错的解决方法

今天碰到了个郁闷的问题,svn执行clean up命令时报错“Previous operation has not finished; run 'cleanup' if it was interrupted”.无论你到那个父层次的目录执行“clean up “,都是报一样的错.执行cleanup时候,提示要cleanup.看来是进入死循环了. 可能是频繁做了一些改名,文件打开的时候更新或者提交操作,导致svn罢工了.这个也该算是svn的bug吧.类似的情况,其实之前也碰到过.之前都是图省事,把整

Process refuced to die after 10 seconds,and couldn&#39;t taskkill it:Unable to find executable for:taskkill报错及解决方法

同样的代码上次测试时可以完整无误地运行,这次打开eclipse运行时Junit报如下错误: taskkill是用来结束进程的,引起该问题的原因是windows系统文件taskkill.exe无法执行.我的解决方法如下:找到C:\Windows\System32目录下的taskkill.exe文件,双击打开,taskkill.exe会闪退一下,关闭目录后重新运行eclipse中的测试代码,报错问题解决. Process refuced to die after 10 seconds,and cou

windows下使用GNU make命令报错的解决方法

windows下使用GNU make命令报错的解决方法=> 错误信息:make: Interrupt/Exception caught (code = 0xc00000fd, addr = 0x4227d3) ## 1.原因环境变量中配置了`D:\Program Files (x86)\Git\bin`,该目录下存在一个`sh.exe` 在执行make命令时,如果在`MakeFile`文件中没有指定shell的路径,`make`就会到环境变量中,去找一个`X:\\XXX\XXX\sh.exe`作

Vue 项目在其他电脑 npm run dev 运行报错的解决方法

一个 Vue 项目从一台电脑上传到 github 上之后,再另外一台电脑上 git clone .并使用 npm run dev 或 npm run start 发生以下报错的解决方法. 报错原因 缺少 node_modules 里面的依赖.在项目目录下使用 npm install然后再 npm run dev.如果在这一步当中, npm install 执行的过程中,处于一直卡顿的状态.说明网络状况不佳.建议使用 cnpm 淘宝源. 淘宝源 使用 cnpm -v 查看是否已经安装 cnpm.如

vue.js 中使用(...)运算符报错的解决方法

vue.js 中使用(...)运算符报错的解决方法 Syntax Error:Unexpected token(XX:X) }, computed:{ ...mapGetters([ 'pageSize' ]) }, 这个错误是在项目中,不识别es6的扩展运算符,解决办法(四步走)如下: 第一步:安装babel-plugin-transform-object-rest-spread cnpm install babel-plugin-transform-object-rest-spread 第二