I am trying to build a custom image using rocky image9.0 version but i am not able to build it, and get the error like
Errors during downloading metadata for repository ‘baseos’:
- Curl error (6): Couldn’t resolve host name for https://mirrors.rockylinux.org/mirrorlist?arch=x86_64&repo=BaseOS-9 [getaddrinfo() thread failed to start]
Error: Failed to download metadata for repo ‘baseos’: Cannot prepare internal mirrorlist: Curl error (6): Couldn’t resolve host name for https://mirrors.rockylinux.org/mirrorlist?arch=x86_64&repo=BaseOS-9 [getaddrinfo() thread failed to start].
Problem is like I am able to build the image on my local machine but when I am performing same operation on a CentOS 7 server, it throws this error.
How can I fix this issue?