Skip to content

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

@jstodola

Description

@jstodola
[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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions