Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build container image: Could not resolve host: mirrorlist.centos.org #82

Open
jstodola opened this issue Oct 24, 2024 · 0 comments

Comments

@jstodola
Copy link
Contributor

[jstodola@fedora permian (main)]$ ./build_container 
STEP 1/8: FROM quay.io/centos/centos:stream8
Trying to pull quay.io/centos/centos:stream8...
Getting image source signatures
Copying blob 3ca969c7b6d7 done   | 
Copying config 197af1ac45 done   | 
Writing manifest to image destination
STEP 2/8: RUN yum -y install git python3 python3-flask python3-requests python3-libxml2 python3-yaml python3-magic
CentOS Stream 8 - AppStream                     0.0  B/s |   0  B     00:00    
Errors during downloading metadata for repository 'appstream':
  - Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8-stream&arch=x86_64&repo=AppStream&infra=container [Could not resolve host: mirrorlist.centos.org]
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8-stream&arch=x86_64&repo=AppStream&infra=container [Could not resolve host: mirrorlist.centos.org]
Error: building at STEP "RUN yum -y install git python3 python3-flask python3-requests python3-libxml2 python3-yaml python3-magic": while running runtime: exit status 1
[jstodola@fedora permian (main)]$

Since CentOS Stream 8 is no longer supported, the container base image needs to be changed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant