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 年前檢視次數 1539 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南