Errors during downloading metadata for repository ‘fedora-modular’:
Hello dear lovely problem-solvers.
I just started to lear how to configure LDAP servers using DOCKERS. I have been trying to solve that f*cking problem for 3 hours and I didn’t found any solution. I asked to my friend to build the docker on his computer and it works, something that made me mad.
I working with Fedora 32, if that information is useful.
Thats the output error:
[[email protected] ldap20:base]$ docker build -t ldap20:latest .
Sending build context to Docker daemon 11.26kB
Step 1/11 : FROM fedora:31
31: Pulling from library/fedora
854946d575a4: Pull complete
Digest: sha256:ba4fe6a3da48addb248a16e8a63599cc5ff5250827e7232d2e3038279a0e467e
Status: Downloaded newer image for fedora:31
—> 4d1ff2457258
Step 2/11 : LABEL version="1.0"
—> Running in c174684e3d50
Removing intermediate container c174684e3d50
—> 6659df5e49b5
Step 3/11 : LABEL author="@isx39444871 ASIX-M06"
—> Running in 69ebfb844819
Removing intermediate container 69ebfb844819
—> 38cc0a369327
Step 4/11 : LABEL subject="ldapserver"
—> Running in 4f8363062f11
Removing intermediate container 4f8363062f11
—> 37741830d166
Step 5/11 : RUN dnf install -y openldap-servers openldap-clients procps iproute iputils tree nmap
—> Running in ce3b33ade7ca
Fedora Modular 31 – x86_64 0.0 B/s | 0 B 01:00
Errors during downloading metadata for repository ‘fedora-modular’:
Curl error (6): Couldn’t resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-modular-31&arch=x86_64 [Could not resolve host: mirrors.fedoraproject.org]
Error: Failed to download metadata for repo ‘fedora-modular’: Cannot prepare internal mirrorlist: Curl error (6): Couldn’t resolve host name for https://mirrors.fedoraproject.org/metalink?repo=fedora-modular-31&arch=x86_64 [Could not resolve host: mirrors.fedoraproject.org]
The command ‘/bin/sh -c dnf install -y openldap-servers openldap-clients procps iproute iputils tree nmap’ returned a non-zero code: 1
If anyone solves the problem I will print out a photo,
that would have been chosen by the solver, and I will eat it.
Send a link with the solution, and i will answer you with the proof video’s link.
Source: Docker Questions