docker-install icon indicating copy to clipboard operation
docker-install copied to clipboard

RHEL install doesn't fail cleanly

Open PoweredByPeople opened this issue 5 years ago • 1 comments

Hi there, I'm seeing the following error when I attempt to install on RHEL:

[root@pdwf-rhnfss01 cloud-user]# curl -fsSL https://get.docker.com | sudo bash
# Executing docker install script, commit: 26ff363bcf3b3f5a00498ac43694bf1c7d9ce16c
+ sh -c 'yum install -y -q yum-utils'
+ sh -c 'yum-config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo'
Adding repo from: https://download.docker.com/linux/rhel/docker-ce.repo
+ '[' stable '!=' stable ']'
+ sh -c 'yum makecache'
Docker CE Stable - x86_64                                                                                                                                                                                                                     1.0 kB/s | 381  B     00:00
Errors during downloading metadata for repository 'docker-ce-stable':
  - Status code: 404 for https://download.docker.com/linux/rhel/7/x86_64/stable/repodata/repomd.xml (IP: 13.225.65.46)
Error: Failed to download metadata for repo 'docker-ce-stable': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

I understand that RHEL isn't supported by Docker CE, however by running the docker install script it leaves the system in a 'broken' state where further yum updates/installs fail since the docker-ce repo has been added in half way.

I think the issue may be related to the file structure here: https://download.docker.com/linux/rhel/

The end result is that any further yum installs fail:

[root@rhel7 yum.repos.d]# yum install htop
Loaded plugins: search-disabled-repos
Epel7                                                                                                                                                                                                                                                  | 4.7 kB  00:00:00
https://download.docker.com/linux/rhel/7/x86_64/stable/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below knowledge base article

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.



 One of the configured repositories failed (Docker CE Stable - x86_64),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=docker-ce-stable ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable docker-ce-stable
        or
            subscription-manager repos --disable=docker-ce-stable

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=docker-ce-stable.skip_if_unavailable=true

failure: repodata/repomd.xml from docker-ce-stable: [Errno 256] No more mirrors to try.
https://download.docker.com/linux/rhel/7/x86_64/stable/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found

Environment info:

NAME="Red Hat Enterprise Linux Server"
VERSION="7.8 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.8"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.8 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.8:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.8
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.8"```

PoweredByPeople avatar Sep 14 '20 19:09 PoweredByPeople

Could remove rhel detecting, and directly output 'WARN' for RHEL 7.x?

ddb4github avatar Mar 23 '21 11:03 ddb4github