install Docker CE 17.03 on RHEL7

前端 未结 7 1413
轮回少年
轮回少年 2020-12-04 07:11

Is it possible to install DockerCE in the specific version 17.03 on RHEL7 ?

  • There is information here:

    • https://docs.docker.com/engine/installa
相关标签:
7条回答
  • 2020-12-04 08:01

    I had the same problem running 7.x and I did the following:

    yum install -y yum-utils
    
    wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    
    rpm -ivh epel-release-latest-7.noarch.rpm
    
    subscription-manager repos --enable=rhel-7-server-extras-rpms
    
    yum install -y http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.55-1.el7.noarch.rpm
    
    yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
    
    yum install -y docker-ce
    
    systemctl restart docker
    

    With this you'll not fall on the pigz error

    Error: Package: docker-ce-18.03.1.ce-1.el7.centos.x86_64 (docker-ce-stable)
               Requires: pigz
     You could try using --skip-broken to work around the problem
    

    Also you need to keep an eye on the container-selinux since i'm using a direct link to the version 2.55-1

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