
이 명령을 사용하여 RHEL7에 Docker CE를 설치하고 있는데 다음과 같이 실패합니다. 한동안 완벽하게 작업한 후 오늘 밤에 시작되었습니다.
sudo yum install -y yum-utils
sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-ce docker-ce-cli containerd.io
무엇이 바뀌었고 무슨 일이 일어났는지 아시나요?
[pzagalsky@pzagalsky-au-rhel7-pzagalsky ~]$ sudo yum install docker-ce docker-ce-cli containerd.io
Failed to set locale, defaulting to C
https://download.docker.com/linux/centos/7Server/x86_64/nightly/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 Nightly - 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-nightly ...
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-nightly
or
subscription-manager repos --disable=docker-ce-nightly
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-nightly.skip_if_unavailable=true
failure: repodata/repomd.xml from docker-ce-nightly: [Errno 256] No more mirrors to try.
https://download.docker.com/linux/centos/7Server/x86_64/nightly/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
답변1
그래서 우리는 설치 및 제거 시 이 문제를 겪었습니다(그리고 어제 모두 잘 작동했습니다).
오류 코드를 보면 다음과 같습니다.
https://download.docker.com/linux/centos/7Server/x86_64/nightly/repodata/repomd.xml:
[Errno 14] HTTPS Error 404 - Not Found
그리고 이 URL을 실제로 404s 브라우저에 연결하면... '/7Server/' 비트에 추가 서버가 있는 것처럼 보입니다...
일시적으로 수정에 성공했지만 /etc/yum.repos.d/docker-ce.repo
Centos yum 저장소를 잘못 사용하고 있었던 반면 실제로는 OS(우리의 경우 OL7)에 대한 특정 저장소를 사용해야 했던 것으로 나타났습니다.
질문의 포스터는 잘못된 yum 저장소를 사용했을 가능성이 가장 높으며 RHEL 저장소를 사용해야 했습니다.
따라서 이에 대한 유효한 수정 방법은 Linux 배포판에 맞는 올바른 yum 저장소를 선택하는 것이며 yum을 통한 docker 설치가 작동해야 합니다.
보다https://docs.docker.com/engine/install/대부분의 배포판에서
클라우드 호스팅 인스턴스를 사용하는 경우 Linux 인스턴스에 기본 yum 저장소가 미리 구성되어 있을 수 있습니다. 이는 OL7 인스턴스의 경우였으며 Ansible 코드가 문제를 일으키는 centos yum 저장소를 잘못 추가했습니다.
이 문제에 대한 정보를 제공해 주셔서 감사합니다.