报错信息代码   收藏代码
  1. //这两天学习docker,安装docker时报错信息如下,再网上没有找到结果,后经过多次尝试,问题出在  
  2. //yum 原上。我的centos是6.5而我用了centos 7 的yum原。  
  3. [root@centos50g docker-training]# yum install docker-engine  
  4. Loaded plugins: fastestmirror  
  5. Setting up Install Process  
  6. Loading mirror speeds from cached hostfile  
  7.  * base: mirrors.btte.net  
  8.  * elrepo: mirrors.tuna.tsinghua.edu.cn  
  9.  * extras: mirrors.btte.net  
  10.  * updates: mirrors.zju.edu.cn  
  11. Resolving Dependencies  
  12. --> Running transaction check  
  13. ---> Package docker-engine.x86_64 0:1.12.3-1.el7.centos will be installed  
  14. --> Processing Dependency: docker-engine-selinux >= 1.12.3-1.el7.centos for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  15. --> Processing Dependency: selinux-policy >= 3.13.1-23 for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  16. --> Processing Dependency: libcgroup for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  17. --> Processing Dependency: xz for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  18. --> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  19. --> Processing Dependency: systemd-units for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  20. --> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  21. --> Processing Dependency: libseccomp.so.2()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  22. --> Processing Dependency: libsystemd.so.0()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  23. --> Running transaction check  
  24. ---> Package docker-engine.x86_64 0:1.12.3-1.el7.centos will be installed  
  25. --> Processing Dependency: selinux-policy >= 3.13.1-23 for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  26. --> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  27. --> Processing Dependency: systemd-units for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  28. --> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  29. --> Processing Dependency: libseccomp.so.2()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  30. --> Processing Dependency: libsystemd.so.0()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  31. ---> Package docker-engine-selinux.noarch 0:1.12.3-1.el7.centos will be installed  
  32. --> Processing Dependency: selinux-policy-base >= 3.13.1-23 for package: docker-engine-selinux-1.12.3-1.el7.centos.noarch  
  33. --> Processing Dependency: selinux-policy-targeted >= 3.13.1-23 for package: docker-engine-selinux-1.12.3-1.el7.centos.noarch  
  34. --> Processing Dependency: policycoreutils-python for package: docker-engine-selinux-1.12.3-1.el7.centos.noarch  
  35. ---> Package libcgroup.x86_64 0:0.40.rc1-18.el6_8 will be installed  
  36. ---> Package xz.x86_64 0:4.999.9-0.5.beta.20091007git.el6 will be installed  
  37. --> Running transaction check  
  38. ---> Package docker-engine.x86_64 0:1.12.3-1.el7.centos will be installed  
  39. --> Processing Dependency: selinux-policy >= 3.13.1-23 for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  40. --> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  41. --> Processing Dependency: systemd-units for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  42. --> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  43. --> Processing Dependency: libseccomp.so.2()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  44. --> Processing Dependency: libsystemd.so.0()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  45. ---> Package docker-engine-selinux.noarch 0:1.12.3-1.el7.centos will be installed  
  46. --> Processing Dependency: selinux-policy-base >= 3.13.1-23 for package: docker-engine-selinux-1.12.3-1.el7.centos.noarch  
  47. --> Processing Dependency: selinux-policy-targeted >= 3.13.1-23 for package: docker-engine-selinux-1.12.3-1.el7.centos.noarch  
  48. ---> Package policycoreutils-python.x86_64 0:2.0.83-30.1.el6_8 will be installed  
  49. --> Processing Dependency: libsemanage-python >= 2.0.43-4 for package: policycoreutils-python-2.0.83-30.1.el6_8.x86_64  
  50. --> Processing Dependency: audit-libs-python >= 1.4.2-1 for package: policycoreutils-python-2.0.83-30.1.el6_8.x86_64  
  51. --> Processing Dependency: setools-libs-python for package: policycoreutils-python-2.0.83-30.1.el6_8.x86_64  
  52. --> Processing Dependency: libselinux-python for package: policycoreutils-python-2.0.83-30.1.el6_8.x86_64  
  53. --> Running transaction check  
  54. ---> Package audit-libs-python.x86_64 0:2.4.5-3.el6 will be installed  
  55. ---> Package docker-engine.x86_64 0:1.12.3-1.el7.centos will be installed  
  56. --> Processing Dependency: selinux-policy >= 3.13.1-23 for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  57. --> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  58. --> Processing Dependency: systemd-units for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  59. --> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  60. --> Processing Dependency: libseccomp.so.2()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  61. --> Processing Dependency: libsystemd.so.0()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  62. ---> Package docker-engine-selinux.noarch 0:1.12.3-1.el7.centos will be installed  
  63. --> Processing Dependency: selinux-policy-base >= 3.13.1-23 for package: docker-engine-selinux-1.12.3-1.el7.centos.noarch  
  64. --> Processing Dependency: selinux-policy-targeted >= 3.13.1-23 for package: docker-engine-selinux-1.12.3-1.el7.centos.noarch  
  65. ---> Package libselinux-python.x86_64 0:2.0.94-7.el6 will be installed  
  66. ---> Package libsemanage-python.x86_64 0:2.0.43-5.1.el6 will be installed  
  67. ---> Package setools-libs-python.x86_64 0:3.3.7-4.el6 will be installed  
  68. --> Processing Dependency: setools-libs = 3.3.7-4.el6 for package: setools-libs-python-3.3.7-4.el6.x86_64  
  69. --> Processing Dependency: libsefs.so.4(VERS_4.0)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  70. --> Processing Dependency: libseaudit.so.4(VERS_4.2)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  71. --> Processing Dependency: libseaudit.so.4(VERS_4.1)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  72. --> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  73. --> Processing Dependency: libqpol.so.1(VERS_1.3)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  74. --> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  75. --> Processing Dependency: libpoldiff.so.1(VERS_1.3)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  76. --> Processing Dependency: libpoldiff.so.1(VERS_1.2)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  77. --> Processing Dependency: libapol.so.4(VERS_4.1)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  78. --> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  79. --> Processing Dependency: libsefs.so.4()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  80. --> Processing Dependency: libseaudit.so.4()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  81. --> Processing Dependency: libqpol.so.1()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  82. --> Processing Dependency: libpoldiff.so.1()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  83. --> Processing Dependency: libapol.so.4()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  84. --> Running transaction check  
  85. ---> Package docker-engine.x86_64 0:1.12.3-1.el7.centos will be installed  
  86. --> Processing Dependency: selinux-policy >= 3.13.1-23 for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  87. --> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  88. --> Processing Dependency: systemd-units for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  89. --> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  90. --> Processing Dependency: libseccomp.so.2()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  91. --> Processing Dependency: libsystemd.so.0()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  92. ---> Package docker-engine-selinux.noarch 0:1.12.3-1.el7.centos will be installed  
  93. --> Processing Dependency: selinux-policy-base >= 3.13.1-23 for package: docker-engine-selinux-1.12.3-1.el7.centos.noarch  
  94. --> Processing Dependency: selinux-policy-targeted >= 3.13.1-23 for package: docker-engine-selinux-1.12.3-1.el7.centos.noarch  
  95. ---> Package setools-libs.x86_64 0:3.3.7-4.el6 will be installed  
  96. --> Finished Dependency Resolution  
  97. Error: Package: docker-engine-1.12.3-1.el7.centos.x86_64 (dockerrepo)  
  98.            Requires: selinux-policy >= 3.13.1-23  
  99.            Installed: selinux-policy-3.7.19-292.el6_8.2.noarch (@updates)  
  100.                selinux-policy = 3.7.19-292.el6_8.2  
  101.            Available: selinux-policy-3.7.19-292.el6.noarch (base)  
  102.                selinux-policy = 3.7.19-292.el6  
  103. Error: Package: docker-engine-selinux-1.12.3-1.el7.centos.noarch (dockerrepo)  
  104.            Requires: selinux-policy-targeted >= 3.13.1-23  
  105.            Installed: selinux-policy-targeted-3.7.19-292.el6_8.2.noarch (@updates)  
  106.                selinux-policy-targeted = 3.7.19-292.el6_8.2  
  107.            Available: selinux-policy-targeted-3.7.19-292.el6.noarch (base)  
  108.                selinux-policy-targeted = 3.7.19-292.el6  
  109. Error: Package: docker-engine-1.12.3-1.el7.centos.x86_64 (dockerrepo)  
  110.            Requires: libsystemd.so.0(LIBSYSTEMD_209)(64bit)  
  111. Error: Package: docker-engine-1.12.3-1.el7.centos.x86_64 (dockerrepo)  
  112.            Requires: libsystemd.so.0()(64bit)  
  113. Error: Package: docker-engine-1.12.3-1.el7.centos.x86_64 (dockerrepo)  
  114.            Requires: libc.so.6(GLIBC_2.17)(64bit)  
  115. Error: Package: docker-engine-selinux-1.12.3-1.el7.centos.noarch (dockerrepo)  
  116.            Requires: selinux-policy-base >= 3.13.1-23  
  117.            Installed: selinux-policy-targeted-3.7.19-292.el6_8.2.noarch (@updates)  
  118.                selinux-policy-base = 3.7.19-292.el6_8.2  
  119.            Available: selinux-policy-minimum-3.7.19-292.el6.noarch (base)  
  120.                selinux-policy-base = 3.7.19-292.el6  
  121.            Available: selinux-policy-minimum-3.7.19-292.el6_8.2.noarch (updates)  
  122.                selinux-policy-base = 3.7.19-292.el6_8.2  
  123.            Available: selinux-policy-mls-3.7.19-292.el6.noarch (base)  
  124.                selinux-policy-base = 3.7.19-292.el6  
  125.            Available: selinux-policy-mls-3.7.19-292.el6_8.2.noarch (updates)  
  126.                selinux-policy-base = 3.7.19-292.el6_8.2  
  127.            Available: selinux-policy-targeted-3.7.19-292.el6.noarch (base)  
  128.                selinux-policy-base = 3.7.19-292.el6  
  129. Error: Package: docker-engine-1.12.3-1.el7.centos.x86_64 (dockerrepo)  
  130.            Requires: systemd-units  
  131. Error: Package: docker-engine-1.12.3-1.el7.centos.x86_64 (dockerrepo)  
  132.            Requires: libseccomp.so.2()(64bit)  
  133.  You could try using --skip-broken to work around the problem  
  134.  You could try running: rpm -Va --nofiles --nodigest  

 解决此问题的方法目前我想到了两种

1、升级centos至7

2、将yum原改成centos6的原

2.1、我原来用的yum原

Java代码   收藏代码
  1. [root@centos50g docker-training]# cat /etc/yum.repos.d/docker.repo   
  2. [dockerrepo]  
  3. name=Docker Repository  
  4. baseurl=https://yum.dockerproject.org/repo/main/centos/7/  
  5. enabled=1  
  6. gpgcheck=1  
  7. gpgkey=https://yum.dockerproject.org/gpg  

 2.2、修改后的yum原

Java代码   收藏代码
  1. [root@centos50g docker-training]# cat /etc/yum.repos.d/docker.repo   
  2. [dockerrepo]  
  3. name=Docker Repository  
  4. baseurl=https://yum.dockerproject.org/repo/main/centos/6/  
  5. enabled=1  
  6. gpgcheck=1  
  7. gpgkey=https://yum.dockerproject.org/gpg  

 2.3、清除yum缓存

Java代码   收藏代码
  1. [root@centos50g docker-training]# yum clean all  
  2. [root@centos50g docker-training]# yum makecache  

 2.4、再次安装docker

Java代码   收藏代码
  1. [root@centos50g docker-training]# yum install docker-engine  

 此时便可安装成功,但是,安装后的docker的版本是1.7.1的

 如果想要使用新的版本,需先升级centos至7后,再升级docker

报错信息代码   收藏代码
  1. //这两天学习docker,安装docker时报错信息如下,再网上没有找到结果,后经过多次尝试,问题出在  
  2. //yum 原上。我的centos是6.5而我用了centos 7 的yum原。  
  3. [root@centos50g docker-training]# yum install docker-engine  
  4. Loaded plugins: fastestmirror  
  5. Setting up Install Process  
  6. Loading mirror speeds from cached hostfile  
  7.  * base: mirrors.btte.net  
  8.  * elrepo: mirrors.tuna.tsinghua.edu.cn  
  9.  * extras: mirrors.btte.net  
  10.  * updates: mirrors.zju.edu.cn  
  11. Resolving Dependencies  
  12. --> Running transaction check  
  13. ---> Package docker-engine.x86_64 0:1.12.3-1.el7.centos will be installed  
  14. --> Processing Dependency: docker-engine-selinux >= 1.12.3-1.el7.centos for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  15. --> Processing Dependency: selinux-policy >= 3.13.1-23 for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  16. --> Processing Dependency: libcgroup for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  17. --> Processing Dependency: xz for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  18. --> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  19. --> Processing Dependency: systemd-units for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  20. --> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  21. --> Processing Dependency: libseccomp.so.2()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  22. --> Processing Dependency: libsystemd.so.0()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  23. --> Running transaction check  
  24. ---> Package docker-engine.x86_64 0:1.12.3-1.el7.centos will be installed  
  25. --> Processing Dependency: selinux-policy >= 3.13.1-23 for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  26. --> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  27. --> Processing Dependency: systemd-units for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  28. --> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  29. --> Processing Dependency: libseccomp.so.2()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  30. --> Processing Dependency: libsystemd.so.0()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  31. ---> Package docker-engine-selinux.noarch 0:1.12.3-1.el7.centos will be installed  
  32. --> Processing Dependency: selinux-policy-base >= 3.13.1-23 for package: docker-engine-selinux-1.12.3-1.el7.centos.noarch  
  33. --> Processing Dependency: selinux-policy-targeted >= 3.13.1-23 for package: docker-engine-selinux-1.12.3-1.el7.centos.noarch  
  34. --> Processing Dependency: policycoreutils-python for package: docker-engine-selinux-1.12.3-1.el7.centos.noarch  
  35. ---> Package libcgroup.x86_64 0:0.40.rc1-18.el6_8 will be installed  
  36. ---> Package xz.x86_64 0:4.999.9-0.5.beta.20091007git.el6 will be installed  
  37. --> Running transaction check  
  38. ---> Package docker-engine.x86_64 0:1.12.3-1.el7.centos will be installed  
  39. --> Processing Dependency: selinux-policy >= 3.13.1-23 for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  40. --> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  41. --> Processing Dependency: systemd-units for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  42. --> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  43. --> Processing Dependency: libseccomp.so.2()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  44. --> Processing Dependency: libsystemd.so.0()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  45. ---> Package docker-engine-selinux.noarch 0:1.12.3-1.el7.centos will be installed  
  46. --> Processing Dependency: selinux-policy-base >= 3.13.1-23 for package: docker-engine-selinux-1.12.3-1.el7.centos.noarch  
  47. --> Processing Dependency: selinux-policy-targeted >= 3.13.1-23 for package: docker-engine-selinux-1.12.3-1.el7.centos.noarch  
  48. ---> Package policycoreutils-python.x86_64 0:2.0.83-30.1.el6_8 will be installed  
  49. --> Processing Dependency: libsemanage-python >= 2.0.43-4 for package: policycoreutils-python-2.0.83-30.1.el6_8.x86_64  
  50. --> Processing Dependency: audit-libs-python >= 1.4.2-1 for package: policycoreutils-python-2.0.83-30.1.el6_8.x86_64  
  51. --> Processing Dependency: setools-libs-python for package: policycoreutils-python-2.0.83-30.1.el6_8.x86_64  
  52. --> Processing Dependency: libselinux-python for package: policycoreutils-python-2.0.83-30.1.el6_8.x86_64  
  53. --> Running transaction check  
  54. ---> Package audit-libs-python.x86_64 0:2.4.5-3.el6 will be installed  
  55. ---> Package docker-engine.x86_64 0:1.12.3-1.el7.centos will be installed  
  56. --> Processing Dependency: selinux-policy >= 3.13.1-23 for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  57. --> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  58. --> Processing Dependency: systemd-units for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  59. --> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  60. --> Processing Dependency: libseccomp.so.2()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  61. --> Processing Dependency: libsystemd.so.0()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  62. ---> Package docker-engine-selinux.noarch 0:1.12.3-1.el7.centos will be installed  
  63. --> Processing Dependency: selinux-policy-base >= 3.13.1-23 for package: docker-engine-selinux-1.12.3-1.el7.centos.noarch  
  64. --> Processing Dependency: selinux-policy-targeted >= 3.13.1-23 for package: docker-engine-selinux-1.12.3-1.el7.centos.noarch  
  65. ---> Package libselinux-python.x86_64 0:2.0.94-7.el6 will be installed  
  66. ---> Package libsemanage-python.x86_64 0:2.0.43-5.1.el6 will be installed  
  67. ---> Package setools-libs-python.x86_64 0:3.3.7-4.el6 will be installed  
  68. --> Processing Dependency: setools-libs = 3.3.7-4.el6 for package: setools-libs-python-3.3.7-4.el6.x86_64  
  69. --> Processing Dependency: libsefs.so.4(VERS_4.0)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  70. --> Processing Dependency: libseaudit.so.4(VERS_4.2)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  71. --> Processing Dependency: libseaudit.so.4(VERS_4.1)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  72. --> Processing Dependency: libqpol.so.1(VERS_1.4)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  73. --> Processing Dependency: libqpol.so.1(VERS_1.3)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  74. --> Processing Dependency: libqpol.so.1(VERS_1.2)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  75. --> Processing Dependency: libpoldiff.so.1(VERS_1.3)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  76. --> Processing Dependency: libpoldiff.so.1(VERS_1.2)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  77. --> Processing Dependency: libapol.so.4(VERS_4.1)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  78. --> Processing Dependency: libapol.so.4(VERS_4.0)(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  79. --> Processing Dependency: libsefs.so.4()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  80. --> Processing Dependency: libseaudit.so.4()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  81. --> Processing Dependency: libqpol.so.1()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  82. --> Processing Dependency: libpoldiff.so.1()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  83. --> Processing Dependency: libapol.so.4()(64bit) for package: setools-libs-python-3.3.7-4.el6.x86_64  
  84. --> Running transaction check  
  85. ---> Package docker-engine.x86_64 0:1.12.3-1.el7.centos will be installed  
  86. --> Processing Dependency: selinux-policy >= 3.13.1-23 for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  87. --> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  88. --> Processing Dependency: systemd-units for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  89. --> Processing Dependency: libc.so.6(GLIBC_2.17)(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  90. --> Processing Dependency: libseccomp.so.2()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  91. --> Processing Dependency: libsystemd.so.0()(64bit) for package: docker-engine-1.12.3-1.el7.centos.x86_64  
  92. ---> Package docker-engine-selinux.noarch 0:1.12.3-1.el7.centos will be installed  
  93. --> Processing Dependency: selinux-policy-base >= 3.13.1-23 for package: docker-engine-selinux-1.12.3-1.el7.centos.noarch  
  94. --> Processing Dependency: selinux-policy-targeted >= 3.13.1-23 for package: docker-engine-selinux-1.12.3-1.el7.centos.noarch  
  95. ---> Package setools-libs.x86_64 0:3.3.7-4.el6 will be installed  
  96. --> Finished Dependency Resolution  
  97. Error: Package: docker-engine-1.12.3-1.el7.centos.x86_64 (dockerrepo)  
  98.            Requires: selinux-policy >= 3.13.1-23  
  99.            Installed: selinux-policy-3.7.19-292.el6_8.2.noarch (@updates)  
  100.                selinux-policy = 3.7.19-292.el6_8.2  
  101.            Available: selinux-policy-3.7.19-292.el6.noarch (base)  
  102.                selinux-policy = 3.7.19-292.el6  
  103. Error: Package: docker-engine-selinux-1.12.3-1.el7.centos.noarch (dockerrepo)  
  104.            Requires: selinux-policy-targeted >= 3.13.1-23  
  105.            Installed: selinux-policy-targeted-3.7.19-292.el6_8.2.noarch (@updates)  
  106.                selinux-policy-targeted = 3.7.19-292.el6_8.2  
  107.            Available: selinux-policy-targeted-3.7.19-292.el6.noarch (base)  
  108.                selinux-policy-targeted = 3.7.19-292.el6  
  109. Error: Package: docker-engine-1.12.3-1.el7.centos.x86_64 (dockerrepo)  
  110.            Requires: libsystemd.so.0(LIBSYSTEMD_209)(64bit)  
  111. Error: Package: docker-engine-1.12.3-1.el7.centos.x86_64 (dockerrepo)  
  112.            Requires: libsystemd.so.0()(64bit)  
  113. Error: Package: docker-engine-1.12.3-1.el7.centos.x86_64 (dockerrepo)  
  114.            Requires: libc.so.6(GLIBC_2.17)(64bit)  
  115. Error: Package: docker-engine-selinux-1.12.3-1.el7.centos.noarch (dockerrepo)  
  116.            Requires: selinux-policy-base >= 3.13.1-23  
  117.            Installed: selinux-policy-targeted-3.7.19-292.el6_8.2.noarch (@updates)  
  118.                selinux-policy-base = 3.7.19-292.el6_8.2  
  119.            Available: selinux-policy-minimum-3.7.19-292.el6.noarch (base)  
  120.                selinux-policy-base = 3.7.19-292.el6  
  121.            Available: selinux-policy-minimum-3.7.19-292.el6_8.2.noarch (updates)  
  122.                selinux-policy-base = 3.7.19-292.el6_8.2  
  123.            Available: selinux-policy-mls-3.7.19-292.el6.noarch (base)  
  124.                selinux-policy-base = 3.7.19-292.el6  
  125.            Available: selinux-policy-mls-3.7.19-292.el6_8.2.noarch (updates)  
  126.                selinux-policy-base = 3.7.19-292.el6_8.2  
  127.            Available: selinux-policy-targeted-3.7.19-292.el6.noarch (base)  
  128.                selinux-policy-base = 3.7.19-292.el6  
  129. Error: Package: docker-engine-1.12.3-1.el7.centos.x86_64 (dockerrepo)  
  130.            Requires: systemd-units  
  131. Error: Package: docker-engine-1.12.3-1.el7.centos.x86_64 (dockerrepo)  
  132.            Requires: libseccomp.so.2()(64bit)  
  133.  You could try using --skip-broken to work around the problem  
  134.  You could try running: rpm -Va --nofiles --nodigest  

 解决此问题的方法目前我想到了两种

1、升级centos至7

2、将yum原改成centos6的原

2.1、我原来用的yum原

Java代码   收藏代码
  1. [root@centos50g docker-training]# cat /etc/yum.repos.d/docker.repo   
  2. [dockerrepo]  
  3. name=Docker Repository  
  4. baseurl=https://yum.dockerproject.org/repo/main/centos/7/  
  5. enabled=1  
  6. gpgcheck=1  
  7. gpgkey=https://yum.dockerproject.org/gpg  

 2.2、修改后的yum原

Java代码   收藏代码
  1. [root@centos50g docker-training]# cat /etc/yum.repos.d/docker.repo   
  2. [dockerrepo]  
  3. name=Docker Repository  
  4. baseurl=https://yum.dockerproject.org/repo/main/centos/6/  
  5. enabled=1  
  6. gpgcheck=1  
  7. gpgkey=https://yum.dockerproject.org/gpg  

 2.3、清除yum缓存

Java代码   收藏代码
  1. [root@centos50g docker-training]# yum clean all  
  2. [root@centos50g docker-training]# yum makecache  

 2.4、再次安装docker

Java代码   收藏代码
  1. [root@centos50g docker-training]# yum install docker-engine  

 此时便可安装成功,但是,安装后的docker的版本是1.7.1的

 如果想要使用新的版本,需先升级centos至7后,再升级docker

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐