설명하다:
나는 이것을 사용하여 yum repolist all
모든 저장소를 얻으려고 시도한 다음
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.mirrors.tds.net
repo id repo name
docker-ce-nightly/7/x86_64 Docker CE Nightly - x86_64 disabled
docker-ce-nightly-debuginfo/7/x86_64 Docker CE Nightly - Debuginfo x86_64 disabled
docker-ce-nightly-source/7 Docker CE Nightly - Sources disabled
docker-ce-stable/7/x86_64 Docker CE Stable - x86_64 disabled
docker-ce-stable-debuginfo/7/x86_64 Docker CE Stable - Debuginfo x86_64 enabled: 17
docker-ce-stable-source/7 Docker CE Stable - Sources enabled: 0
docker-ce-test/7/x86_64 Docker CE Test - x86_64 disabled
docker-ce-test-debuginfo/7/x86_64 Docker CE Test - Debuginfo x86_64 disabled
docker-ce-test-source/7 Docker CE Test - Sources disabled
저장소 ID로 저장소를 활성화하려고 하는데 다음 메시지와 함께 실패합니다 docker-ce-stable/7/x86_64
.yum-config-manager --enable docker-ce-stable/7/x86_64
[root@slc07ppm02 xiaojguan]# yum-config-manager --enable docker-ce-stable/7/x86_64
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror
하지만 yum-config-manager --enable docker-ce-stable\*
저장소 ID로 저장소를 추가 할 수 docker-ce-stable/7/x86_64
있으며 괜찮을 것입니다.
예상되는 도움:
docker-ce-stable/7/x86_64
다음을 통해 ID로 저장소를 추가 할 수 있습니다 .
yum-config-manager --enable docker-ce-stable/7/x86_64
미리 감사드립니다! ! !