YUM not working inside amazonlinux container running on a Ubuntu host

0

While trying to do a yum install wget inside the amazonlinux docker container running on ubuntu, it is failing with the following logs:

r&region=unknown: [Errno 12] Timeout on https://cdn.amazonlinux.com/2/core/2.0/x86_64/60218a287b1e04d5b93212019453c3417aa7bc4d1df7895e7c4abfd1e6d824a7/repodata/repomd.xml?instance_id=URLError&region=unknown: (28, 'Resolving timed out after 5000 milliseconds')
2022-09-19 17:37:05,172:[prepare]:[ERROR]:: #5 23.95 Trying other mirror.

There is internet connection inside the container, as I am able to curl www.google.com and get a successful response.

AWS
질문됨 2년 전1538회 조회
1개 답변
0

Not sure if there is a proxy issue happening here but perhaps see this to get some pointers for "Resolving timed out after 5000 milliseconds". It does not have use case of amazonlinux container running but perhaps can provide some pointers to troubleshoot Reference : https://aws.amazon.com/premiumsupport/knowledge-center/ec2-troubleshoot-yum-errors-al1-al2/

profile pictureAWS
전문가
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠