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

前端 未结 18 1067
余生分开走
余生分开走 2020-12-07 13:19

I am trying to install Docker CE on RHEL using this link. This is my RHEL version:

Red Hat Enterprise Linux Server release 7.3 (Mai         


        
相关标签:
18条回答
  • 2020-12-07 13:31

    The container-selinux package is available from the rhel-7-server-extras-rpms channel. You can enable it using:

    subscription-manager repos --enable=rhel-7-server-extras-rpms
    

    Sources for the package have been exported to git.centos.org, too, so you could rebuild it yourself using mock:

    • https://git.centos.org/summary/rpms!container-selinux.git

    (This is not a programming question, so you should use one of the other sites.)

    0 讨论(0)
  • 2020-12-07 13:33

    On CentOS7 I had to follow the third install method, get-docker.sh https://docs.docker.com/install/linux/docker-ce/centos/#install-using-the-convenience-script

    0 讨论(0)
  • 2020-12-07 13:34

    Try:

    yum install http://vault.centos.org/centos/7.3.1611/extras/x86_64/Packages/container-selinux-2.9-4.el7.noarch.rpm
    

    It worked for me.

    0 讨论(0)
  • 2020-12-07 13:34

    [SOLVED] Simple one command to fix this issue.

    yum install http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.107-3.el7.noarch.rpm
    
    0 讨论(0)
  • 2020-12-07 13:34

    this link helped me to solve this issue

    Here is the solution: For centos: try

    sudo yum install --setopt=obsoletes=0 \
    >    docker-ce-17.03.2.ce-1.el7.centos.x86_64 \
    >    docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch
    

    For Rhel:

    sudo yum install --setopt=obsoletes=0 docker-ce-17.03.3.ce-1.el7.x86_64.rpm docker-ce-selinux-17.03.3.ce-1.el7.noarch.rpm
    
    0 讨论(0)
  • 2020-12-07 13:37

    Just install selinux latest version to fix it:
    sudo yum install -y http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.107-3.el7.noarch.rpm

    More versions at http://mirror.centos.org/centos/7/extras/x86_64/Packages/

    Older versions of 2.9: http://ftp.riken.jp/Linux/cern/centos/7/extras/x86_64/Packages/

    0 讨论(0)
提交回复
热议问题