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
gefragt vor 2 Jahren1538 Aufrufe
1 Antwort
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
EXPERTE
beantwortet vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen