예비 시도

예비 시도

SLES 12.5에 Docker를 설치하려고 합니다. 아래 지침을 따라해 보았습니다.이 답변.

예비 시도

# zypper addrepo https://download.opensuse.org/repositories/Virtualization:containers/SLE_12_SP5/Virtualization:containers.repo
Adding repository 'Virtualization:containers (SLE_12_SP5)' ...........................................................................................................[done]
Repository 'Virtualization:containers (SLE_12_SP5)' successfully added

URI         : https://download.opensuse.org/repositories/Virtualization:/containers/SLE_12_SP5/
Enabled     : Yes
GPG Check   : Yes
Autorefresh : No
Priority    : 99 (default priority)

Repository priorities are without effect. All enabled repositories share the same priority.
# zypper refresh
Repository 'SLES12-SP5-Pool' is up to date.
Repository 'SLES12-SP5-Updates' is up to date.
Repository 'Update' is up to date.
Retrieving repository 'Virtualization:containers (SLE_12_SP5)' metadata -------------------------------------------------------------------------------------------------[-]
Download (curl) error for 'https://download.opensuse.org/repositories/Virtualization:/containers/SLE_12_SP5/repodata/a02bda6c6525d5d550e34e98844bf0e18a66aa1a24282c72a80c4679ef2e121d-primary.xml.gz':
Error code:  Bad URL
Error message: Redirect to protocol "http" not supported or disabled in libcurl

Abort, retry, ignore? [a/r/i/...? shows all options] (a): a
Retrieving repository 'Virtualization:containers (SLE_12_SP5)' metadata .............................................................................................[error]
Repository 'Virtualization:containers (SLE_12_SP5)' is invalid.
[Virtualization_containers|https://download.opensuse.org/repositories/Virtualization:/containers/SLE_12_SP5/] Valid metadata not found at specified URL
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'Virtualization:containers (SLE_12_SP5)' because of the above error.
Some of the repositories have not been refreshed because of an error.

두 번째 시도

내가 찾은이 질문은 Unix 및 Linux에 관한 것입니다.비슷한 오류가 발생하여 /etc/zypp/repos.d/Virtualization_containers.repo다음과 같이 파일을 편집했습니다.

앞으로:

[Virtualization_containers]
name=Virtualization:containers (SLE_12_SP5)
enabled=1
autorefresh=0
baseurl=https://download.opensuse.org/repositories/Virtualization:/containers/SLE_12_SP5/
type=rpm-md
gpgcheck=1
gpgkey=https://download.opensuse.org/repositories/Virtualization:/containers/SLE_12_SP5/repodata/repomd.xml.key

뒤쪽에:

[Virtualization_containers]
name=Virtualization:containers (SLE_12_SP5)
enabled=1
autorefresh=0
baseurl=http://download.opensuse.org/repositories/Virtualization:/containers/SLE_12_SP5/
type=rpm-md

그런 다음 다시 시도해 보세요.

# zypper refresh
Repository 'SLES12-SP5-Pool' is up to date.
Repository 'SLES12-SP5-Updates' is up to date.
Repository 'Update' is up to date.
Retrieving repository 'Virtualization:containers (SLE_12_SP5)' metadata -------------------------------------------------------------------------------------------------[/]
Timeout exceeded when accessing 'http://download.opensuse.org/repositories/Virtualization:/containers/SLE_12_SP5/repodata/a02bda6c6525d5d550e34e98844bf0e18a66aa1a24282c72a80c4679ef2e121d-primary.xml.gz'.
Abort, retry, ignore? [a/r/i] (r): i
Autoselecting 'r' after 7 seconds.
Retrieving repository 'Virtualization:containers (SLE_12_SP5)' metadata .............................................................................................[error]
Repository 'Virtualization:containers (SLE_12_SP5)' is invalid.
[Virtualization_containers|http://download.opensuse.org/repositories/Virtualization:/containers/SLE_12_SP5/] Valid metadata not found at specified URL
Please check if the URIs defined for this repository are pointing to a valid repository.
Skipping repository 'Virtualization:containers (SLE_12_SP5)' because of the above error.
Some of the repositories have not been refreshed because of an error.

세 번째 시도

zypper를 버리고 다른 설치 방법을 사용해 보았습니다. RPM 파일을 찾았습니다여기

https://download.opensuse.org/repositories/Virtualization:/containers/SLE_12_SP5/x86_64/docker-19.03.12_ce-378.39.x86_64.rpm

myserver:~/temp # systemctl stop docker
myserver:~/temp # docker ps
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
myserver:~/temp # rpm -ivh docker-19.03.12_ce-378.39.x86_64.rpm
error: Failed dependencies:
        catatonit is needed by docker-19.03.12_ce-378.39.x86_64
        containerd-git = 7ad184331fa3e55e52b890ea95e65ba581ae3429 is needed by docker-19.03.12_ce-378.39.x86_64
        docker-libnetwork-git = 026aabaa659832804b01754aaadd2c0f420c68b6 is needed by docker-19.03.12_ce-378.39.x86_64
        docker-runc-git = dc9208a3303feef5b3839f4323d9beb36df0a9dd is needed by docker-19.03.12_ce-378.39.x86_64
        fix_bsc_1057743 is needed by docker-19.03.12_ce-378.39.x86_64
https://download.opensuse.org/repositories/Virtualization:/containers/SLE_12_SP5/x86_64/docker-19.03.12_ce-378.39.x86_64.rpm

질문

그렇다면 SLES 12.5에 Docker를 설치하는 방법은 무엇입니까? 고칠 수 있나요 Redirect to protocol "http" not supported or disabled in libcurl?

답변1

여기 있어요.

시도 2는 성공했어야 했지만 특정 URL( http://download.opensuse.org/repositories/Virtualization:/containers/SLE_12_SP5/repodata/a02bda6c6525d5d550e34e98844bf0e18a66aa1a24282c72a80c4679ef2e121d-primary.xml.gz)이 다양한 opensuse 저장소 미러 중 하나로 자동 리디렉션되었습니다. 직접 다운로드를 시도하여 문제를 해결했는데 wget리디렉션이 표시되었습니다. 이 특정 미러는 네트워크 연결 허용 목록에 포함되어 있지 않기 때문에 미러에 액세스할 수 없습니다(따라서 시간 초과). 해결책은 이 이미지를 화이트리스트에 포함시키는 것입니다.

관련 정보