Docker Community Forums

Share and learn in the Docker community.

why using my home network (ISP), I can't able to build docker?

I used this command to build my docker.problem is, In my home using my ISP’s broadband data I am not able to build docker

More speceficly the error is:

fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.13/main: temporary error (try again later)
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.13/main: No such file or directory
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.13/community: temporary error (try again later)
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.13/community: No such file or directory
2 errors; 35 distinct packages available

If you look top, you will see it is saying to try again later and later it is saying No such file or directory . But I do checked the url in browser and I see the file/package is available there. The thing is it is failed to fetch using my current network.

But when I am switch to mobile data, It works as expected. Could be DNS issue or anything else. I do want to find the proper solution. Because every time I build using mobile data, It cost my data and also more time. There should a proper solution I guess to handle this.

It’s been long time, I am trying to solve this. But I could not. Hoping to get solution this time.

Try to run a container from the image you used as a base image and use curl or wget in a verbose mode to download the APKINDEX.tar.gz and check the headers and the body part of the response. Check if the domain name resolution works (nslookup dl-cdn.alpinelinux.org). If you don’t have curl, wget or nslookup and you won’t be able to install it so try to find another image which contains them. The problem could be some kind of firewall, proxy, dns or something else I didn’t think of.