重要:有些人在vmware中安装了新的centos用于使用docker,但是往往会忽略了更换源与进行系统update,

这样会导致安装过程中出现诸多如下类问题,为了避免不必要的麻烦在安装docker前最好最到一下几点:

  1. 1.替换centos源为163或其他更适合的源,具体操作可以查看我另一篇文章《戳这里
  2. 2.清空缓存(yum clean\ yum makecache
  3. 3.系统更新(yum update
  • 确认环境
  1. [root@localhost ~]# cat /etc/redhat-release
  2. CentOS Linux release 7.0. (Core)
  • docker安装 -> 报错
  1. [root@localhost ~]# yum install docker
  2. Loaded plugins: fastestmirror, langpacks
  3. Repodata is over weeks old. Install yum-cron? Or run: yum makecache fast
  4. Existing lock /var/run/yum.pid: another copy is running as pid 11946.
  5. Another app is currently holding the yum lock; waiting for it to exit...
  6. The other application is: PackageKit
  7. Memory : M RSS ( MB VSZ)
  8. Started: Thu Jul :: - : ago
  9. State : Sleeping, pid:
  • 解决方法

    1. rm -rf /run/yum.pid
  1. [root@localhost run]# rm -rf /run/yum.pid
  • 继续docker安装 -> 报错
  1. [root@localhost run]# yum install docker
  2. Loaded plugins: fastestmirror, langpacks
  3. Repodata is over weeks old. Install yum-cron? Or run: yum makecache fast
  4. base | 3.6 kB ::
  5. extras | 3.4 kB ::
  6. updates | 3.4 kB ::
  7. (/): extras//x86_64/primary_db | kB ::
  8. (/): updates//x86_64/primary_db | 5.7 MB ::
  9. Determining fastest mirrors
  10. * base: mirrors..com
  11. * extras: mirrors..com
  12. * updates: mirrors..com
  13. Resolving Dependencies
  14. --> Running transaction check
  15. ---> Package docker.x86_64 :1.10.-.el7.centos will be installed
  16. --> Processing Dependency: oci-systemd-hook = 1.10.-.el7.centos for package: docker-1.10.-.el7.centos.x86_64
  17. --> Processing Dependency: oci-register-machine = 1.10.-.el7.centos for package: docker-1.10.-.el7.centos.x86_64
  18. --> Processing Dependency: docker-forward-journald = 1.10.-.el7.centos for package: docker-1.10.-.el7.centos.x86_64
  19. --> Processing Dependency: docker-common = 1.10.-.el7.centos for package: docker-1.10.-.el7.centos.x86_64
  20. --> Processing Dependency: selinux-policy >= 3.13.- for package: docker-1.10.-.el7.centos.x86_64
  21. --> Processing Dependency: docker-selinux >= 1.10.-.el7.centos for package: docker-1.10.-.el7.centos.x86_64
  22. --> Processing Dependency: device-mapper-libs >= :1.02. for package: docker-1.10.-.el7.centos.x86_64
  23. --> Processing Dependency: libsystemd.so.(LIBSYSTEMD_209)(64bit) for package: docker-1.10.-.el7.centos.x86_64
  24. --> Processing Dependency: libdevmapper.so.1.02(DM_1_02_97)(64bit) for package: docker-1.10.-.el7.centos.x86_64
  25. --> Processing Dependency: libsystemd.so.()(64bit) for package: docker-1.10.-.el7.centos.x86_64
  26. --> Running transaction check
  27. ---> Package device-mapper-libs.x86_64 :1.02.-.el7 will be updated
  28. --> Processing Dependency: device-mapper-libs = :1.02.-.el7 for package: :device-mapper-1.02.-.el7.x86_64
  29. ---> Package device-mapper-libs.x86_64 :1.02.-.el7_2. will be an update
  30. ---> Package docker-common.x86_64 :1.10.-.el7.centos will be installed
  31. ---> Package docker-forward-journald.x86_64 :1.10.-.el7.centos will be installed
  32. ---> Package docker-selinux.x86_64 :1.10.-.el7.centos will be installed
  33. --> Processing Dependency: selinux-policy-targeted >= 3.13.- for package: docker-selinux-1.10.-.el7.centos.x86_64
  34. --> Processing Dependency: selinux-policy-base >= 3.13.- for package: docker-selinux-1.10.-.el7.centos.x86_64
  35. ---> Package oci-register-machine.x86_64 :1.10.-.el7.centos will be installed
  36. ---> Package oci-systemd-hook.x86_64 :1.10.-.el7.centos will be installed
  37. ---> Package selinux-policy.noarch :3.12.-.el7 will be updated
  38. ---> Package selinux-policy.noarch :3.13.-.el7_2. will be an update
  39. ---> Package systemd-libs.x86_64 :-.el7 will be updated
  40. --> Processing Dependency: systemd-libs = -.el7 for package: systemd--.el7.x86_64
  41. ---> Package systemd-libs.x86_64 :-.el7_2. will be an update
  42. --> Running transaction check
  43. ---> Package device-mapper.x86_64 :1.02.-.el7 will be updated
  44. --> Processing Dependency: device-mapper = :1.02.-.el7 for package: :device-mapper-event-1.02.-.el7.x86_64
  45. ---> Package device-mapper.x86_64 :1.02.-.el7_2. will be an update
  46. ---> Package selinux-policy-targeted.noarch :3.12.-.el7 will be updated
  47. ---> Package selinux-policy-targeted.noarch :3.13.-.el7_2. will be an update
  48. ---> Package systemd.x86_64 :-.el7 will be updated
  49. --> Processing Dependency: systemd = -.el7 for package: libgudev1--.el7.x86_64
  50. --> Processing Dependency: systemd = -.el7 for package: systemd-sysv--.el7.x86_64
  51. --> Processing Dependency: systemd = -.el7 for package: systemd-python--.el7.x86_64
  52. ---> Package systemd.x86_64 :-.el7_2. will be an update
  53. --> Processing Dependency: kmod >= - for package: systemd--.el7_2..x86_64
  54. --> Running transaction check
  55. ---> Package device-mapper-event.x86_64 :1.02.-.el7 will be updated
  56. ---> Package device-mapper-event.x86_64 :1.02.-.el7_2. will be an update
  57. --> Processing Dependency: device-mapper-event-libs = :1.02.-.el7_2. for package: :device-mapper-event-1.02.-.el7_2..x86_64
  58. ---> Package kmod.x86_64 :-.el7 will be updated
  59. ---> Package kmod.x86_64 :-.el7 will be an update
  60. ---> Package libgudev1.x86_64 :-.el7 will be updated
  61. ---> Package libgudev1.x86_64 :-.el7_2. will be an update
  62. ---> Package systemd-python.x86_64 :-.el7 will be updated
  63. ---> Package systemd-python.x86_64 :-.el7_2. will be an update
  64. ---> Package systemd-sysv.x86_64 :-.el7 will be updated
  65. ---> Package systemd-sysv.x86_64 :-.el7_2. will be an update
  66. --> Running transaction check
  67. ---> Package device-mapper-event-libs.x86_64 :1.02.-.el7 will be updated
  68. ---> Package device-mapper-event-libs.x86_64 :1.02.-.el7_2. will be an update
  69. --> Processing Conflict: systemd--.el7_2..x86_64 conflicts initscripts < 9.49.-
  70. --> Restarting Dependency Resolution with new changes.
  71. --> Running transaction check
  72. ---> Package initscripts.x86_64 :9.49.-.el7 will be updated
  73. ---> Package initscripts.x86_64 :9.49.-.el7_2. will be an update
  74. --> Processing Conflict: systemd--.el7_2..x86_64 conflicts dracut < -
  75. --> Restarting Dependency Resolution with new changes.
  76. --> Running transaction check
  77. ---> Package dracut.x86_64 :-.el7 will be updated
  78. --> Processing Dependency: dracut = -.el7 for package: dracut-config-rescue--.el7.x86_64
  79. --> Processing Dependency: dracut = -.el7 for package: dracut-network--.el7.x86_64
  80. ---> Package dracut.x86_64 :-.el7_2. will be an update
  81. --> Running transaction check
  82. ---> Package dracut-config-rescue.x86_64 :-.el7 will be updated
  83. ---> Package dracut-config-rescue.x86_64 :-.el7_2. will be an update
  84. ---> Package dracut-network.x86_64 :-.el7 will be updated
  85. ---> Package dracut-network.x86_64 :-.el7_2. will be an update
  86. --> Finished Dependency Resolution
  87.  
  88. Dependencies Resolved
  89.  
  90. ============================================================================================================================================
  91. Package Arch Version Repository Size
  92. ============================================================================================================================================
  93. Installing:
  94. docker x86_64 1.10.-.el7.centos extras 8.6 M
  95. Updating:
  96. dracut x86_64 -.el7_2. updates k
  97. initscripts x86_64 9.49.-.el7_2. updates k
  98. Installing for dependencies:
  99. docker-common x86_64 1.10.-.el7.centos extras k
  100. docker-forward-journald x86_64 1.10.-.el7.centos extras k
  101. docker-selinux x86_64 1.10.-.el7.centos extras k
  102. oci-register-machine x86_64 1.10.-.el7.centos extras 1.0 M
  103. oci-systemd-hook x86_64 1.10.-.el7.centos extras k
  104. Updating for dependencies:
  105. device-mapper x86_64 :1.02.-.el7_2. updates k
  106. device-mapper-event x86_64 :1.02.-.el7_2. updates k
  107. device-mapper-event-libs x86_64 :1.02.-.el7_2. updates k
  108. device-mapper-libs x86_64 :1.02.-.el7_2. updates k
  109. dracut-config-rescue x86_64 -.el7_2. updates k
  110. dracut-network x86_64 -.el7_2. updates k
  111. kmod x86_64 -.el7 base k
  112. libgudev1 x86_64 -.el7_2. updates k
  113. selinux-policy noarch 3.13.-.el7_2. updates k
  114. selinux-policy-targeted noarch 3.13.-.el7_2. updates 3.9 M
  115. systemd x86_64 -.el7_2. updates 5.1 M
  116. systemd-libs x86_64 -.el7_2. updates k
  117. systemd-python x86_64 -.el7_2. updates k
  118. systemd-sysv x86_64 -.el7_2. updates k
  119.  
  120. Transaction Summary
  121. ============================================================================================================================================
  122. Install Package (+ Dependent packages)
  123. Upgrade Packages (+ Dependent packages)
  124.  
  125. Total download size: M
  126. Is this ok [y/d/N]: y
  127. Downloading packages:
  128. No Presto metadata available for base
  129. updates//x86_64/prestodelta | kB ::
  130. warning: /var/cache/yum/x86_64//updates/packages/device-mapper-1.02.-.el7_2..x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
  131. Public key for device-mapper-1.02.-.el7_2..x86_64.rpm is not installed
  132. (/): device-mapper-1.02.-.el7_2..x86_64.rpm | kB ::
  133. (/): device-mapper-event-libs-1.02.-.el7_2..x86_64.rpm | kB ::
  134. Public key for docker-forward-journald-1.10.-.el7.centos.x86_64.rpm is not installed ] 0.0 B/s | 1.2 MB --:--:-- ETA
  135. (/): docker-forward-journald-1.10.-.el7.centos.x86_64.rpm | kB ::
  136. (/): docker-selinux-1.10.-.el7.centos.x86_64.rpm | kB ::
  137. (/): docker-common-1.10.-.el7.centos.x86_64.rpm | kB ::
  138. (/): dracut--.el7_2..x86_64.rpm | kB ::
  139. (/): dracut-network--.el7_2..x86_64.rpm | kB ::
  140. (/): device-mapper-event-1.02.-.el7_2..x86_64.rpm | kB ::
  141. (/): initscripts-9.49.-.el7_2..x86_64.rpm | kB ::
  142. Public key for kmod--.el7.x86_64.rpm is not installed
  143. (/): kmod--.el7.x86_64.rpm | kB ::
  144. (/): libgudev1--.el7_2..x86_64.rpm | kB ::
  145. (/): oci-systemd-hook-1.10.-.el7.centos.x86_64.rpm | kB ::
  146. (/): device-mapper-libs-1.02.-.el7_2..x86_64.rpm | kB ::
  147. (/): selinux-policy-3.13.-.el7_2..noarch.rpm | kB ::
  148. (/): dracut-config-rescue--.el7_2..x86_64.rpm | kB ::
  149. (/): systemd-libs--.el7_2..x86_64.rpm | kB ::
  150. (/): docker-1.10.-.el7.centos.x86_64.rpm | 8.6 MB ::
  151. (/): systemd-python--.el7_2..x86_64.rpm | kB ::
  152. (/): systemd-sysv--.el7_2..x86_64.rpm | kB ::
  153. (/): oci-register-machine-1.10.-.el7.centos.x86_64.rpm | 1.0 MB ::
  154. (/): selinux-policy-targeted-3.13.-.el7_2..noarch.rpm | 3.9 MB ::
  155. (/): systemd--.el7_2..x86_64.rpm | 5.1 MB ::
  156. --------------------------------------------------------------------------------------------------------------------------------------------
  157. Total 3.1 MB/s | MB ::
  158. Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
  159. Importing GPG key 0xF4A80EB5:
  160. Userid : "CentOS-7 Key (CentOS 7 Official Signing Key) <security@centos.org>"
  161. Fingerprint: ab27 53d7 8a78 a7c2 7bb1 24c6 a8a7 f4a8 0eb5
  162. Package : centos-release--0.1406.el7.centos.2.3.x86_64 (@anaconda)
  163. From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-
  164. Is this ok [y/N]: y
  165. Running transaction check
  166. Running transaction test
  167.  
  168. Transaction check error:
  169. 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
  170. 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
  171. 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
  172.  
  173. Error Summary
  174. -------------
  • 解决方法

    1. yum install libdevmapper* -y
  1. [root@localhost run]# yum install libdevmapper* -y
  2. Loaded plugins: fastestmirror, langpacks
  3. Loading mirror speeds from cached hostfile
  4. * base: mirrors..com
  5. * extras: mirrors..com
  6. * updates: mirrors..com
  7. Resolving Dependencies
  8. --> Running transaction check
  9. ---> Package device-mapper-event-libs.x86_64 :1.02.-.el7 will be updated
  10. --> Processing Dependency: device-mapper-event-libs = :1.02.-.el7 for package: :device-mapper-event-1.02.-.el7.x86_64
  11. ---> Package device-mapper-event-libs.x86_64 :1.02.-.el7_2. will be an update
  12. ---> Package device-mapper-libs.x86_64 :1.02.-.el7 will be updated
  13. --> Processing Dependency: device-mapper-libs = :1.02.-.el7 for package: :device-mapper-1.02.-.el7.x86_64
  14. ---> Package device-mapper-libs.x86_64 :1.02.-.el7_2. will be an update
  15. ---> Package lvm2-libs.x86_64 :2.02.-.el7 will be updated
  16. --> Processing Dependency: lvm2-libs = :2.02.-.el7 for package: :lvm2-2.02.-.el7.x86_64
  17. ---> Package lvm2-libs.x86_64 :2.02.-.el7_2. will be an update
  18. --> Running transaction check
  19. ---> Package device-mapper.x86_64 :1.02.-.el7 will be updated
  20. ---> Package device-mapper.x86_64 :1.02.-.el7_2. will be an update
  21. ---> Package device-mapper-event.x86_64 :1.02.-.el7 will be updated
  22. ---> Package device-mapper-event.x86_64 :1.02.-.el7_2. will be an update
  23. ---> Package lvm2.x86_64 :2.02.-.el7 will be updated
  24. ---> Package lvm2.x86_64 :2.02.-.el7_2. will be an update
  25. --> Processing Dependency: device-mapper-persistent-data >= 0.5.- for package: :lvm2-2.02.-.el7_2..x86_64
  26. --> Running transaction check
  27. ---> Package device-mapper-persistent-data.x86_64 :0.3.-.el7 will be updated
  28. ---> Package device-mapper-persistent-data.x86_64 :0.5.-.el7 will be an update
  29. --> Finished Dependency Resolution
  30.  
  31. Dependencies Resolved
  32.  
  33. ============================================================================================================================================
  34. Package Arch Version Repository Size
  35. ============================================================================================================================================
  36. Updating:
  37. device-mapper-event-libs x86_64 :1.02.-.el7_2. updates k
  38. device-mapper-libs x86_64 :1.02.-.el7_2. updates k
  39. lvm2-libs x86_64 :2.02.-.el7_2. updates k
  40. Updating for dependencies:
  41. device-mapper x86_64 :1.02.-.el7_2. updates k
  42. device-mapper-event x86_64 :1.02.-.el7_2. updates k
  43. device-mapper-persistent-data x86_64 0.5.-.el7 base k
  44. lvm2 x86_64 :2.02.-.el7_2. updates 1.0 M
  45.  
  46. Transaction Summary
  47. ============================================================================================================================================
  48. Upgrade Packages (+ Dependent packages)
  49.  
  50. Total size: 3.0 M
  51. Total download size: 2.2 M
  52. Downloading packages:
  53. No Presto metadata available for base
  54. (/): device-mapper-persistent-data-0.5.-.el7.x86_64.rpm | kB ::
  55. (/): lvm2-2.02.-.el7_2..x86_64.rpm | 1.0 MB ::
  56. (/): lvm2-libs-2.02.-.el7_2..x86_64.rpm | kB ::
  57. --------------------------------------------------------------------------------------------------------------------------------------------
  58. Total kB/s | 2.2 MB ::
  59. Running transaction check
  60. Running transaction test
  61. Transaction test succeeded
  62. Running transaction
  63. Updating : :device-mapper-1.02.-.el7_2..x86_64 /
  64. Updating : :device-mapper-libs-1.02.-.el7_2..x86_64 /
  65. Updating : :device-mapper-event-libs-1.02.-.el7_2..x86_64 /
  66. Updating : :device-mapper-event-1.02.-.el7_2..x86_64 /
  67. Updating : :lvm2-libs-2.02.-.el7_2..x86_64 /
  68. Updating : device-mapper-persistent-data-0.5.-.el7.x86_64 /
  69. Updating : :lvm2-2.02.-.el7_2..x86_64 /
  70. ln -s '/usr/lib/systemd/system/lvm2-lvmetad.socket' '/etc/systemd/system/sysinit.target.wants/lvm2-lvmetad.socket'
  71. ln -s '/usr/lib/systemd/system/lvm2-lvmpolld.socket' '/etc/systemd/system/sysinit.target.wants/lvm2-lvmpolld.socket'
  72. Cleanup : :lvm2-2.02.-.el7.x86_64 /
  73. Cleanup : :lvm2-libs-2.02.-.el7.x86_64 /
  74. Cleanup : :device-mapper-event-1.02.-.el7.x86_64 /
  75. Cleanup : :device-mapper-event-libs-1.02.-.el7.x86_64 /
  76. Cleanup : :device-mapper-1.02.-.el7.x86_64 /
  77. Cleanup : :device-mapper-libs-1.02.-.el7.x86_64 /
  78. Cleanup : device-mapper-persistent-data-0.3.-.el7.x86_64 /
  79. Verifying : :device-mapper-libs-1.02.-.el7_2..x86_64 /
  80. Verifying : :device-mapper-1.02.-.el7_2..x86_64 /
  81. Verifying : :lvm2-2.02.-.el7_2..x86_64 /
  82. Verifying : device-mapper-persistent-data-0.5.-.el7.x86_64 /
  83. Verifying : :lvm2-libs-2.02.-.el7_2..x86_64 /
  84. Verifying : :device-mapper-event-libs-1.02.-.el7_2..x86_64 /
  85. Verifying : :device-mapper-event-1.02.-.el7_2..x86_64 /
  86. Verifying : :lvm2-2.02.-.el7.x86_64 /
  87. Verifying : device-mapper-persistent-data-0.3.-.el7.x86_64 /
  88. Verifying : :lvm2-libs-2.02.-.el7.x86_64 /
  89. Verifying : :device-mapper-event-libs-1.02.-.el7.x86_64 /
  90. Verifying : :device-mapper-libs-1.02.-.el7.x86_64 /
  91. Verifying : :device-mapper-event-1.02.-.el7.x86_64 /
  92. Verifying : :device-mapper-1.02.-.el7.x86_64 /
  93.  
  94. Updated:
  95. device-mapper-event-libs.x86_64 :1.02.-.el7_2. device-mapper-libs.x86_64 :1.02.-.el7_2. lvm2-libs.x86_64 :2.02.-.el7_2.
  96.  
  97. Dependency Updated:
  98. device-mapper.x86_64 :1.02.-.el7_2. device-mapper-event.x86_64 :1.02.-.el7_2.
  99. device-mapper-persistent-data.x86_64 :0.5.-.el7 lvm2.x86_64 :2.02.-.el7_2.
  100.  
  101. Complete!
  • 继续docker安装 -> 成功
  1. [root@localhost run]# yum install docker
  2. Loaded plugins: fastestmirror, langpacks
  3. Loading mirror speeds from cached hostfile
  4. * base: mirrors..com
  5. * extras: mirrors..com
  6. * updates: mirrors..com
  7. Resolving Dependencies
  8. --> Running transaction check
  9. ---> Package docker.x86_64 :1.10.-.el7.centos will be installed
  10. --> Processing Dependency: oci-systemd-hook = 1.10.-.el7.centos for package: docker-1.10.-.el7.centos.x86_64
  11. --> Processing Dependency: oci-register-machine = 1.10.-.el7.centos for package: docker-1.10.-.el7.centos.x86_64
  12. --> Processing Dependency: docker-forward-journald = 1.10.-.el7.centos for package: docker-1.10.-.el7.centos.x86_64
  13. --> Processing Dependency: docker-common = 1.10.-.el7.centos for package: docker-1.10.-.el7.centos.x86_64
  14. --> Processing Dependency: selinux-policy >= 3.13.- for package: docker-1.10.-.el7.centos.x86_64
  15. --> Processing Dependency: docker-selinux >= 1.10.-.el7.centos for package: docker-1.10.-.el7.centos.x86_64
  16. --> Processing Dependency: libsystemd.so.(LIBSYSTEMD_209)(64bit) for package: docker-1.10.-.el7.centos.x86_64
  17. --> Processing Dependency: libsystemd.so.()(64bit) for package: docker-1.10.-.el7.centos.x86_64
  18. --> Running transaction check
  19. ---> Package docker-common.x86_64 :1.10.-.el7.centos will be installed
  20. ---> Package docker-forward-journald.x86_64 :1.10.-.el7.centos will be installed
  21. ---> Package docker-selinux.x86_64 :1.10.-.el7.centos will be installed
  22. --> Processing Dependency: selinux-policy-targeted >= 3.13.- for package: docker-selinux-1.10.-.el7.centos.x86_64
  23. --> Processing Dependency: selinux-policy-base >= 3.13.- for package: docker-selinux-1.10.-.el7.centos.x86_64
  24. ---> Package oci-register-machine.x86_64 :1.10.-.el7.centos will be installed
  25. ---> Package oci-systemd-hook.x86_64 :1.10.-.el7.centos will be installed
  26. ---> Package selinux-policy.noarch :3.12.-.el7 will be updated
  27. ---> Package selinux-policy.noarch :3.13.-.el7_2. will be an update
  28. ---> Package systemd-libs.x86_64 :-.el7 will be updated
  29. --> Processing Dependency: systemd-libs = -.el7 for package: systemd--.el7.x86_64
  30. ---> Package systemd-libs.x86_64 :-.el7_2. will be an update
  31. --> Running transaction check
  32. ---> Package selinux-policy-targeted.noarch :3.12.-.el7 will be updated
  33. ---> Package selinux-policy-targeted.noarch :3.13.-.el7_2. will be an update
  34. ---> Package systemd.x86_64 :-.el7 will be updated
  35. --> Processing Dependency: systemd = -.el7 for package: libgudev1--.el7.x86_64
  36. --> Processing Dependency: systemd = -.el7 for package: systemd-python--.el7.x86_64
  37. --> Processing Dependency: systemd = -.el7 for package: systemd-sysv--.el7.x86_64
  38. ---> Package systemd.x86_64 :-.el7_2. will be an update
  39. --> Processing Dependency: kmod >= - for package: systemd--.el7_2..x86_64
  40. --> Running transaction check
  41. ---> Package kmod.x86_64 :-.el7 will be updated
  42. ---> Package kmod.x86_64 :-.el7 will be an update
  43. ---> Package libgudev1.x86_64 :-.el7 will be updated
  44. ---> Package libgudev1.x86_64 :-.el7_2. will be an update
  45. ---> Package systemd-python.x86_64 :-.el7 will be updated
  46. ---> Package systemd-python.x86_64 :-.el7_2. will be an update
  47. ---> Package systemd-sysv.x86_64 :-.el7 will be updated
  48. ---> Package systemd-sysv.x86_64 :-.el7_2. will be an update
  49. --> Processing Conflict: systemd--.el7_2..x86_64 conflicts initscripts < 9.49.-
  50. --> Restarting Dependency Resolution with new changes.
  51. --> Running transaction check
  52. ---> Package initscripts.x86_64 :9.49.-.el7 will be updated
  53. ---> Package initscripts.x86_64 :9.49.-.el7_2. will be an update
  54. --> Processing Conflict: systemd--.el7_2..x86_64 conflicts dracut < -
  55. --> Restarting Dependency Resolution with new changes.
  56. --> Running transaction check
  57. ---> Package dracut.x86_64 :-.el7 will be updated
  58. --> Processing Dependency: dracut = -.el7 for package: dracut-config-rescue--.el7.x86_64
  59. --> Processing Dependency: dracut = -.el7 for package: dracut-network--.el7.x86_64
  60. ---> Package dracut.x86_64 :-.el7_2. will be an update
  61. --> Running transaction check
  62. ---> Package dracut-config-rescue.x86_64 :-.el7 will be updated
  63. ---> Package dracut-config-rescue.x86_64 :-.el7_2. will be an update
  64. ---> Package dracut-network.x86_64 :-.el7 will be updated
  65. ---> Package dracut-network.x86_64 :-.el7_2. will be an update
  66. --> Finished Dependency Resolution
  67.  
  68. Dependencies Resolved
  69.  
  70. ============================================================================================================================================
  71. Package Arch Version Repository Size
  72. ============================================================================================================================================
  73. Installing:
  74. docker x86_64 1.10.-.el7.centos extras 8.6 M
  75. Updating:
  76. dracut x86_64 -.el7_2. updates k
  77. initscripts x86_64 9.49.-.el7_2. updates k
  78. Installing for dependencies:
  79. docker-common x86_64 1.10.-.el7.centos extras k
  80. docker-forward-journald x86_64 1.10.-.el7.centos extras k
  81. docker-selinux x86_64 1.10.-.el7.centos extras k
  82. oci-register-machine x86_64 1.10.-.el7.centos extras 1.0 M
  83. oci-systemd-hook x86_64 1.10.-.el7.centos extras k
  84. Updating for dependencies:
  85. dracut-config-rescue x86_64 -.el7_2. updates k
  86. dracut-network x86_64 -.el7_2. updates k
  87. kmod x86_64 -.el7 base k
  88. libgudev1 x86_64 -.el7_2. updates k
  89. selinux-policy noarch 3.13.-.el7_2. updates k
  90. selinux-policy-targeted noarch 3.13.-.el7_2. updates 3.9 M
  91. systemd x86_64 -.el7_2. updates 5.1 M
  92. systemd-libs x86_64 -.el7_2. updates k
  93. systemd-python x86_64 -.el7_2. updates k
  94. systemd-sysv x86_64 -.el7_2. updates k
  95.  
  96. Transaction Summary
  97. ============================================================================================================================================
  98. Install Package (+ Dependent packages)
  99. Upgrade Packages (+ Dependent packages)
  100.  
  101. Total size: M
  102. Is this ok [y/d/N]: y
  103. Downloading packages:
  104. Running transaction check
  105. Running transaction test
  106. Transaction test succeeded
  107. Running transaction
  108. Updating : systemd-libs--.el7_2..x86_64 /
  109. Updating : dracut--.el7_2..x86_64 /
  110. Updating : kmod--.el7.x86_64 /
  111. Updating : systemd--.el7_2..x86_64 /
  112. Updating : selinux-policy-3.13.-.el7_2..noarch /
  113. Updating : selinux-policy-targeted-3.13.-.el7_2..noarch /
  114. 140k
  115. Installing : docker-selinux-1.10.-.el7.centos.x86_64 /
  116. Installing : oci-register-machine-1.10.-.el7.centos.x86_64 /
  117. Installing : docker-forward-journald-1.10.-.el7.centos.x86_64 /
  118. Installing : docker-common-1.10.-.el7.centos.x86_64 /
  119. Installing : oci-systemd-hook-1.10.-.el7.centos.x86_64 /
  120. Installing : docker-1.10.-.el7.centos.x86_64 /
  121. Updating : initscripts-9.49.-.el7_2..x86_64 /
  122. Updating : systemd-sysv--.el7_2..x86_64 /
  123. Updating : systemd-python--.el7_2..x86_64 /
  124. Updating : dracut-config-rescue--.el7_2..x86_64 /
  125. Updating : dracut-network--.el7_2..x86_64 /
  126. Updating : libgudev1--.el7_2..x86_64 /
  127. Cleanup : selinux-policy-targeted-3.12.-.el7.noarch /
  128. warning: file /etc/selinux/targeted/modules/active/modules/vbetool.pp: remove failed: No such file or directory
  129. warning: file /etc/selinux/targeted/modules/active/modules/pkcsslotd.pp: remove failed: No such file or directory
  130. Cleanup : systemd-sysv--.el7.x86_64 /
  131. Cleanup : dracut-network--.el7.x86_64 /
  132. Cleanup : dracut-config-rescue--.el7.x86_64 /
  133. Cleanup : dracut--.el7.x86_64 /
  134. Cleanup : systemd-python--.el7.x86_64 /
  135. Cleanup : libgudev1--.el7.x86_64 /
  136. Cleanup : initscripts-9.49.-.el7.x86_64 /
  137. Cleanup : selinux-policy-3.12.-.el7.noarch /
  138. Cleanup : systemd--.el7.x86_64 /
  139. Cleanup : kmod--.el7.x86_64 /
  140. Cleanup : systemd-libs--.el7.x86_64 /
  141. Verifying : dracut-config-rescue--.el7_2..x86_64 /
  142. Verifying : initscripts-9.49.-.el7_2..x86_64 /
  143. Verifying : dracut-network--.el7_2..x86_64 /
  144. Verifying : oci-systemd-hook-1.10.-.el7.centos.x86_64 /
  145. Verifying : kmod--.el7.x86_64 /
  146. Verifying : libgudev1--.el7_2..x86_64 /
  147. Verifying : selinux-policy-3.13.-.el7_2..noarch /
  148. Verifying : docker-selinux-1.10.-.el7.centos.x86_64 /
  149. Verifying : systemd-libs--.el7_2..x86_64 /
  150. Verifying : dracut--.el7_2..x86_64 /
  151. Verifying : systemd--.el7_2..x86_64 /
  152. Verifying : docker-common-1.10.-.el7.centos.x86_64 /
  153. Verifying : docker-1.10.-.el7.centos.x86_64 /
  154. Verifying : systemd-sysv--.el7_2..x86_64 /
  155. Verifying : docker-forward-journald-1.10.-.el7.centos.x86_64 /
  156. Verifying : systemd-python--.el7_2..x86_64 /
  157. Verifying : selinux-policy-targeted-3.13.-.el7_2..noarch /
  158. Verifying : oci-register-machine-1.10.-.el7.centos.x86_64 /
  159. Verifying : dracut-config-rescue--.el7.x86_64 /
  160. Verifying : kmod--.el7.x86_64 /
  161. Verifying : systemd-python--.el7.x86_64 /
  162. Verifying : selinux-policy-3.12.-.el7.noarch /
  163. Verifying : dracut-network--.el7.x86_64 /
  164. Verifying : systemd-sysv--.el7.x86_64 /
  165. Verifying : dracut--.el7.x86_64 /
  166. Verifying : initscripts-9.49.-.el7.x86_64 /
  167. Verifying : systemd-libs--.el7.x86_64 /
  168. Verifying : systemd--.el7.x86_64 /
  169. Verifying : selinux-policy-targeted-3.12.-.el7.noarch /
  170. Verifying : libgudev1--.el7.x86_64 /
  171.  
  172. Installed:
  173. docker.x86_64 :1.10.-.el7.centos
  174.  
  175. Dependency Installed:
  176. docker-common.x86_64 :1.10.-.el7.centos docker-forward-journald.x86_64 :1.10.-.el7.centos
  177. docker-selinux.x86_64 :1.10.-.el7.centos oci-register-machine.x86_64 :1.10.-.el7.centos
  178. oci-systemd-hook.x86_64 :1.10.-.el7.centos
  179.  
  180. Updated:
  181. dracut.x86_64 :-.el7_2. initscripts.x86_64 :9.49.-.el7_2.
  182.  
  183. Dependency Updated:
  184. dracut-config-rescue.x86_64 :-.el7_2. dracut-network.x86_64 :-.el7_2.
  185. kmod.x86_64 :-.el7 libgudev1.x86_64 :-.el7_2.
  186. selinux-policy.noarch :3.13.-.el7_2. selinux-policy-targeted.noarch :3.13.-.el7_2.
  187. systemd.x86_64 :-.el7_2. systemd-libs.x86_64 :-.el7_2.
  188. systemd-python.x86_64 :-.el7_2. systemd-sysv.x86_64 :-.el7_2.
  189.  
  190. Complete!
  • 查看docker版本信息

    1. docker version
  1. [root@localhost run]# docker version
  2. Client:
  3. Version: 1.10.
  4. API version: 1.22
  5. Package version: docker-common-1.10.-.el7.centos.x86_64
  6. Go version: go1.4.2
  7. Git commit: 9419b24-unsupported
  8. Built: Fri Jun ::
  9. OS/Arch: linux/amd64
  10. Cannot connect to the Docker daemon. Is the docker daemon running on this host?

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

  1. 安装docker17.06.0版本报错和解决方法

    本人在自己电脑的虚拟机里安装docker ce 17.06.0版本的时候报如下错误: [root@manager2 yum.repos.d]# yum install docker-ce-17.06. ...

  2. 创建maven项目时pom.xml报错的解决方法

    创建maven项目时pom.xml时: 出现如下报错信息: Failure to transfer commons-lang:commons-lang:jar:2.1 from https://rep ...

  3. [Python]输出中文报错的解决方法

    问题现象:在PyCharm工具编辑python语句输出中文时,程序报错. 解决方法(2种): 1.在代码开头加#coding=utf-8(注意要加#) 2.还是在代码开头加#-*- coding: u ...

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

    Linux安装ElasticSearch后,ElasticSearch是不能用root用户启动的,以root用户启动会报错Refer to the log for complete error det ...

  5. vue项目初始化时npm run dev报错webpack-dev-server解决方法

    vue项目初始化时npm run dev报错webpack-dev-server解决方法 原因:这是新版webpack存在的BUG,卸载现有的新版本webpack,装老版本就好webpack-dev- ...

  6. Xamarin开发安装Visual Studio 2015 update2报错的解决办法

    Xamarin开发安装Visual Studio 2015 update2报错的解决办法错误信息:update 2 requires a member of the visual studio 201 ...

  7. 网站eurl.axd报错的解决方法

    网站eurl.axd报错的解决方法 错误发生的原因是当ASP.NET检测到Web站点配置为使用ASP.NET 4.0,本地ASP.NET 4.0 的组件会传递一个不能扩展的 URL到ASP.NET的管 ...

  8. SQL Server2008数据库报错与解决方法

    一. 报错信息 启动MSSQLSERVER时有以下报错信息 打开SQL SERVER配置管理器,发现以下情况报错: 原因:由于先前安装了2005版VS,然后又安装了2015版VS 解决办法:卸载Loc ...

  9. 源码编译apache报错的解决方法

    源码编译apache报错的解决方法   问题介绍 在源码编译安装httpd时,./configure执行无错误,到make时就报错,在网络上搜索了很多文章,很多方法如换apr-util的低版本并不能很 ...

随机推荐

  1. gdb/valgrind/coredump to debug c/cpp program

    gdb/valgrind/coredump 调试 1.gdb 调试 while/for 循环 ①如果在调试 while/for的时候,可以用until xxx(其中,xxx代表 行号)直接跳转到循环后 ...

  2. linux之Gcc使用

    本篇文章摘自 http://blog.csdn.net/ljzcom/article/details/7213101 对于Gcc自带的很多命令行,只有具体编程里面用到了或者看到别人真真用到的,用的目的 ...

  3. CLI-error

    SQL_ERROR: One of the following occurred: RecNumber was negative or 0. BufferLength was less than ze ...

  4. 停车场管理软件附带源代码 J2EE服务端+android客户端

    该源码是停车场管理软件附带源代码 J2EE服务端+android客户端,也是一套停车场管理车辆进出的管理软,喜欢的朋友可以看看吧. 应用的后台管理主要功能介绍:1  机构管理 ,机构有从属管理< ...

  5. 如何禁止KnockoutJs在VS2012的智能格式化

    http://blogs.msdn.com/b/webdev/archive/2013/03/04/disabling-knockout-intellisense.aspx 我升级了一下VS2012, ...

  6. zabbix3.0.3 设置邮件报警

    在zabbix3.0.3 设置报警这里卡了两天.终于解决了,这里我使用的mailx来作为发送邮件的客户端 1.设置mailx发信账号 yum -y install mailx ln -s /bin/m ...

  7. jquery横向滚动条

    此代码献给wendy 由于工作太忙,下次再整理成插件调用,先记录下来,欢迎同学们提意见. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Tr ...

  8. mac安装memcache

    1.wget http://blog.s135.com/soft/linux/nginx_php/memcache/memcache-2.2.5.tgz 2.tar zxvf memcache-2.2 ...

  9. Oracle SGA参数调整

    一. SGA的组成: 自动 SGA 管理后,Oracle 可以自动为我们调整以下内存池的大小: shared pool buffer cache large pool java pool stream ...

  10. 1056. Mice and Rice (25)

    时间限制 30 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue Mice and Rice is the name of a pr ...