install Docker CE 17.03 on RHEL7

前端 未结 7 1412
轮回少年
轮回少年 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 07:35

    Procedure for a disposable dev test RHEL 7.3. Never do this in production.

    # pre-requisite for container-selinux-2.9-4.el7.noarch.rpm
    sudo yum install policycoreutils-python
    
    wget http://mirror.centos.org/centos/7/extras/x86_64/Packages/container-selinux-2.107-3.el7.noarch.rpm
    sudo rpm -i container-selinux-2.21-1.el7.noarch.rpm
    
    #Set up the Docker CE repository on RHEL:
    sudo yum install -y yum-utils
    sudo yum install -y device-mapper-persistent-data lvm2
    sudo yum-config-manager --enable rhel-7-server-extras-rpms
    sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
    sudo yum makecache fast
    
    # Install the latest version of Docker CE on RHEL:
    sudo yum -y install docker-ce
    
    #Start Docker:
    sudo systemctl start docker
    
    #Test your Docker CE installation:
    sudo docker run hello-world
    
    # configure Docker to start on boot
    sudo systemctl enable docker
    
    # add user to the docker group 
    sudo usermod -aG docker jethro
    
    # install Docker Compose:
    # install python-pip
    wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    
    sudo yum install ./epel-release-latest-7.noarch.rpm
    sudo yum install -y python-pip
    
    sudo pip install docker-compose
    
    # upgrade your Python packages:
    sudo yum upgrade python*
    

    The above assumes you are NOT using a proxy. If you are, you will need to add proxy=http://myproxy:myport lines pretty much at the end of each block in each file under /etc/yum.repos.d/, or add it to /etc/yum.conf.

    Hope this helps.

    0 讨论(0)
  • 2020-12-04 07:36

    As per the documentation here, you can install Docker CE 17.03 (or future versions) on RHEL 7.3 64-bit via:

    Set up the Docker CE repository on RHEL:

    sudo yum install -y yum-utils
    sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
    sudo yum makecache fast
    

    Install the latest version of Docker CE on RHEL:

    sudo yum -y install docker-ce
    

    Alternatively, you can specify a specific version of Docker CE:

    sudo yum -y install docker-ce-<version>-<release>
    

    Start Docker:

    sudo systemctl start docker
    

    Test your Docker CE installation:

    sudo docker run hello-world
    
    0 讨论(0)
  • 2020-12-04 07:46

    Well maybe you can acheive installing Docker CE 17.06 or 17.03 on RHEL 7.3, but Docker documentation is quite clear:

    Docker Community Edition (Docker CE) is not supported on RHEL.

    See https://docs.docker.com/engine/installation/linux/docker-ee/rhel/

    0 讨论(0)
  • 2020-12-04 07:51

    For those who are facing below error:

    Error: Package: docker-ce-17.06.0.ce-1.el7.centos.x86_64 (docker-ce-stable)
           Requires: container-selinux >= 2.9
           You could try using --skip-broken to work around the problem
           You could try running: rpm -Va --nofiles --nodigest
    

    While installing docker on RHEL 7.3+ we need to execute:

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

    which will enable extra rpms to be installed on yum update.After this execute:

        sudo yum update
    

    Then follow: Install Docker

    This has worked for me.

    0 讨论(0)
  • 2020-12-04 07:52

    By following From @Matt Schuchard and @Akash Srivastava

    combining their commands together I found below command lines working for me.

    sudo yum install -y yum-utils
    sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
    sudo yum makecache fast
    sudo subscription-manager repos --enable rhel-7-server-extras-rpms
    sudo yum update
    sudo yum -y install docker-ce
    sudo systemctl start docker
    

    Thank you

    0 讨论(0)
  • 2020-12-04 08:00

    INSTALLING DOCKER RHEL/CENTOS

    1. Got To: https://download.docker.com/linux/centos/7/x86_64/stable/Packages/

      download: docker-ce-17.03.2.ce-1.el7.centos.x86_64.rpm 2018-06-08 05:48 19M download: docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch.rpm 2018-06-08 05:48 29K

      Upload to server

      1. yum -y install docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch.rpm

      2. yum -y install docker-ce-17.03.2.ce-1.el7.centos.x86_64.rpm

      3. sudo systemctl start docker

      4. REF: install Docker CE 17.03 on RHEL7 https://nickjanetakis.com/blog/docker-tip-39-installing-docker-ce-on-redhat-rhel-7x https://docs.docker.com/install/linux/docker-ee/rhel/#set-up-the-repository

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