
Docker에서 CentOS 6을 사용하고 있는데 를 설치할 때 git
다음 종속성 오류가 발생합니다.
Error: Package: glibc-2.12-1.166.el6_7.7.i686 (updates)
Requires: glibc-common = 2.12-1.166.el6_7.7
Installed: glibc-common-2.12-1.192.el6.x86_64 (@CR/6.7)
glibc-common = 2.12-1.192.el6
Available: glibc-common-2.12-1.166.el6.x86_64 (base)
glibc-common = 2.12-1.166.el6
Available: glibc-common-2.12-1.166.el6_7.1.x86_64 (updates)
glibc-common = 2.12-1.166.el6_7.1
Available: glibc-common-2.12-1.166.el6_7.3.x86_64 (updates)
glibc-common = 2.12-1.166.el6_7.3
Available: glibc-common-2.12-1.166.el6_7.7.x86_64 (updates)
glibc-common = 2.12-1.166.el6_7.7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Service 'docker-project' failed to build: The command '/bin/sh -c yum install -y \
java-1.8.0-openjdk-devel.x86_64 \
unzip \
git \
&& yum clean all' returned a non-zero code: 1
이것은 며칠 전에 아무런 변화 없이 작동했습니다. CentOS 저장소는 어떻게 되었나요?
참고로 내 내용은 다음과 같습니다 Dockerfile
.
FROM centos:6
RUN yum install -y \
java-1.8.0-openjdk-devel.x86_64 \
unzip \
git \
&& yum clean all
답변1
EPEL 저장소가 활성화될 때마다 약간의 충돌이 발생합니다. git
다음 명령을 사용하여 설치해 보십시오 .
yum install git --disablerepo=epel
exclude=git*
파일 에 추가하여 EPEL 저장소에서 git을 영구적으로 제외할 수 있습니다 /etc/yum.repos.d/epel.repo
.
답변2
EPEL 저장소를 제거했는데 --disablerep=epel
도움이 되지 않았습니다. 마침내 나는 a를 했고 docker pull centos:centos6
그로 인해 문제가 해결된 것 같습니다. 이미지에 일시적인 문제가 있었던 것 같은데 최근 업데이트로 수정되었습니다.