【问题标题】:Unable to install Docker 17 on CentOS 7无法在 CentOS 7 上安装 Docker 17
【发布时间】:2020-06-20 17:15:47
【问题描述】:

无法在 CentOs 7 上安装 docker 17。在 CentOS 7 中,如何安装 docker?

我正在尝试按照此处的说明在 CentOS 7 机器上安装本地 docker.io 注册表: https://docs.docker.com/install/linux/docker-ce/centos/

       [root@ip-172-31-31-198 ~]#  yum install docker-ce
    Loaded plugins: priorities, update-motd, upgrade-helper
    amzn-main                                                                                                                                                             | 2.1 kB  00:00:00
    amzn-updates                                                                                                                                                          | 2.5 kB  00:00:00
    Resolving Dependencies
    --> Running transaction check
    ---> Package docker-ce.x86_64 3:19.03.7-3.el7 will be installed
    --> Processing Dependency: container-selinux >= 2:2.74 for package: 3:docker-ce-19.03.7-3.el7.x86_64
    --> Processing Dependency: containerd.io >= 1.2.2-3 for package: 3:docker-ce-19.03.7-3.el7.x86_64
    --> Processing Dependency: libseccomp >= 2.3 for package: 3:docker-ce-19.03.7-3.el7.x86_64
    --> Processing Dependency: docker-ce-cli for package: 3:docker-ce-19.03.7-3.el7.x86_64
    --> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: 3:docker-ce-19.03.7-3.el7.x86_64
    --> Processing Dependency: systemd for package: 3:docker-ce-19.03.7-3.el7.x86_64
    --> Processing Dependency: libseccomp.so.2()(64bit) for package: 3:docker-ce-19.03.7-3.el7.x86_64
    --> Processing Dependency: libsystemd.so.0()(64bit) for package: 3:docker-ce-19.03.7-3.el7.x86_64
    --> Running transaction check
    ---> Package containerd.io.x86_64 0:1.2.13-3.1.el7 will be installed
    --> Processing Dependency: container-selinux >= 2:2.74 for package: containerd.io-1.2.13-3.1.el7.x86_64
    --> Processing Dependency: systemd for package: containerd.io-1.2.13-3.1.el7.x86_64
    --> Processing Dependency: systemd for package: containerd.io-1.2.13-3.1.el7.x86_64
    ---> Package docker-ce.x86_64 3:19.03.7-3.el7 will be installed
    --> Processing Dependency: container-selinux >= 2:2.74 for package: 3:docker-ce-19.03.7-3.el7.x86_64
    --> Processing Dependency: libsystemd.so.0(LIBSYSTEMD_209)(64bit) for package: 3:docker-ce-19.03.7-3.el7.x86_64
    --> Processing Dependency: systemd for package: 3:docker-ce-19.03.7-3.el7.x86_64
    --> Processing Dependency: libsystemd.so.0()(64bit) for package: 3:docker-ce-19.03.7-3.el7.x86_64
    ---> Package docker-ce-cli.x86_64 1:19.03.7-3.el7 will be installed
    ---> Package libseccomp.x86_64 0:2.3.1-2.4.amzn1 will be installed
    --> Finished Dependency Resolution
    Error: Package: 3:docker-ce-19.03.7-3.el7.x86_64 (docker-ce-stable)
               Requires: container-selinux >= 2:2.74
    Error: Package: 3:docker-ce-19.03.7-3.el7.x86_64 (docker-ce-stable)
               Requires: libsystemd.so.0()(64bit)
    Error: Package: 3:docker-ce-19.03.7-3.el7.x86_64 (docker-ce-stable)
               Requires: libsystemd.so.0(LIBSYSTEMD_209)(64bit)
    Error: Package: containerd.io-1.2.13-3.1.el7.x86_64 (docker-ce-stable)
               Requires: systemd
    Error: Package: 3:docker-ce-19.03.7-3.el7.x86_64 (docker-ce-stable)
               Requires: systemd
    Error: Package: containerd.io-1.2.13-3.1.el7.x86_64 (docker-ce-stable)
               Requires: container-selinux >= 2:2.74
     You could try using --skip-broken to work around the problem
     You could try running: rpm -Va --nofiles --nodigest
    [root@ip-172-31-31-198 ~]#

【问题讨论】:

    标签: linux docker docker-compose


    【解决方案1】:

    请检查以下链接,显示一堆解决方案,我希望它可以帮助

    [Docker CE on RHEL - Requires: container-selinux >= 2.9

    【讨论】:

    • 尝试了所有选项。得到同样的错误——需要:selinux-policy-base >= 3.13.1-39
    猜你喜欢
    • 2015-06-08
    • 1970-01-01
    • 2023-03-22
    • 1970-01-01
    • 2016-11-15
    • 2017-05-27
    • 2019-04-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多