Amazonlinux : running as container in cci but it unable to run yum update

bash-5.2# yum update
Amazon Linux 2023 repository 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository ‘amazonlinux’:

Using yum on an EC2 AWS instance needs certain rules set for network access. The following may help

i am not running it on aws , while building on CCI i need to spin docker with amazonlinux for testing and yum update was working but suddenly started getting mentioned error

Do you have a simplified config.yml that shows the issue as it can then be used to understand what is going on?

Within my own environment when I pull down the Amazon Linux docker image from the docker hub I can do a yum update without any issues.

@rit1010 i have figure out and seems like circle CI default machine : ubuntu-2004 is having some issue and when we build docker on it for testing as below

FROM public.ecr.aws/amazonlinux/amazonlinux
LABEL maintainer=“amazon”

docker actually not able to connect to internet and it’s not able to run YUM updates .
same thing is working with ubuntu-2204:2023.02.1 .

i am not sure how to report this bug to circle CI .

Which image tag were you using as that image has had a lot of revisions?

A number of the CircleCI staff monitor the forums, so they should pick up on this thread.

its using default image as we are not using machine executor , so its something decided by circle CI

Did you ever get a resolution to your dnf / yum install issue on AL2023 ? After moving from AL2 to AL2023 … we are getting the following on all dnf installs …
Errors during downloading metadata for repository ‘amazonlinux’:

  • Curl error (6): Couldn’t resolve host name for … [getaddrinfo() thread failed to start]