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
preguntada hace 2 años1538 visualizaciones
1 Respuesta
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
EXPERTO
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas