-
Notifications
You must be signed in to change notification settings - Fork 529
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
dl-cdn.alpinelinux.org errors #386
Comments
is there any update on this? Im too getting this error |
|
Also getting these errors. |
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz CDN seems to be down again |
+1 Had this issue, but realized that it was a defective docker bridge or something. Restarting the daemon fixed it for me and the troubleshooting process was working back from DNS resolution, routing, etc from the pertinent host. |
adding |
#279 is a similar issue from the past. |
Hello, Is there any fix available for this? I'm getting same error especially in APAC region. Step 1/14 : FROM openjdk:8u151-jdk-alpine3.7 |
@prawen fixed my issue before your $ apk add --no-cache bash |
Had the same error trying to build an alpine-sdk docker using Docker Windows 10. Checked the status of the server, and the server was fine and reachable outside docker. Restarting docker did the trick for me. Looking in the Docker log file it's clear that the DNS configuration was set incorrectly. So when seeing this error in a docker context, try to restart docker first. |
After trying both the workarounds I'm still getting below error. Step 1/15 : FROM openjdk:8u151-jdk-alpine3.7 |
|
It seems to be an issue with wget (or any other tool fetching data) not sending host header when requesting resources. |
I hit the same error. Any more update?
|
Running the echo command and it didn't seem to help. I ended up just restarting my laptop and that seemed to work. |
Any others suggestions on working around this issue? |
Not working for me any updates on this ,, This is annoying |
In my situation was wrong |
It's DNS issue you can solve it by using the following steps:
IP4.DNS[1]: 192.168.0.1
note: replace that ip "192.168.0.1" to your dns ip
|
Seems your docker can not go out of host machine. Maybe this can help:
|
Please use docker run -e OR docker build --build-arg to pass http_proxy env variable required for apk package manager |
@GaudamThiyagarajan solution worked for me |
as pointed out by @azyata its can be a problem with the If you are performing From
if it doesn't work
then perform ping
if it works for you, then
sudo systemctl restart docker ^ This solved the problem for me. |
I am also getting below error: fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/x86_64/APKINDEX.tar.gz |
I'm behind a proxy and I experienced a similar error: fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.10/main: temporary error (try again later)
WARNING: Ignoring APKINDEX.00740ba1.tar.gz: No such file or directory
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.10/community: temporary error (try again later)
WARNING: Ignoring APKINDEX.d8b2a6f4.tar.gz: No such file or directory
2 errors; 15 distinct packages available I solved it by creating a sudo nano /etc/docker/daemon.json and inserting: {
"bip": "192.168.1.5/24"
} Restart docker and try again: sudo systemctl daemon-reload
sudo systemctl restart docker If I were to guess I'd say that docker bridge0 clash with the proxy in some way? |
Had the same problem with php 7.4 alpine image in Ubuntu inside Windows (WSL2). I was trying to install the imagick extension via pecl and kept getting "No releases available for package pecl.php.net/imagick" error. Changing the nameserver to google's 8.8.8.8 solved it for me. Thank you. $ sudo vi /etc/resolv.conf # change nameserver to 8.8.8.8 |
same issue here, updating DNS resolver fixs it, but I used systemd config instead of directly modify update your add something like this:
restart the service: sudo service systemd-resolved restart verify the dns revolver: systemd-resolve --status | grep 'DNS Servers' -A2 Now try to run your commands again 🐧 |
all Package on bintray has been moved |
also also get this error for many years |
This worked for me on raspberry pi. Many thanks |
This is works for my Raspberry Pi 4B 1.4 version. Many Thanks! |
same with me, 3.13 DNS lookup error, 3.12 everything fine |
I am using vagrant to provision my virtual machines containing docker. |
Replacing sed -i -e 's/http:/https:/' /etc/apk/repositories |
Here are lots of smart solutions to test. |
same issue on alpine:3.14 and alpine:3.13 |
Got it working only after downgrading to alpine3.12 as @lukaszkowalskifd did. |
Have been using just Downgrading to |
how to downgrade the alpine version |
how to downgrade the alpine version from 3.15 to 3.12 |
Just specify the tag. For example, " $ # Latest Alpine
$ docker run --rm alpine:latest grep '^VERSION' /etc/os-release
VERSION_ID=3.15.3
$ # Alpine 3.15
$ docker run --rm alpine:3.15 grep '^VERSION' /etc/os-release
VERSION_ID=3.15.3
$ # Alpine 3.12
$ docker run --rm alpine:3.12 grep '^VERSION' /etc/os-release
VERSION_ID=3.12.11 To be honest, I don't think the Alpine base image is suitable for beginners; until you are familiar with the basics of Docker, such as the |
Just rebooted my Ubuntu and it solved this issue. |
I had a similar issue, but I have solved it by using args --network=host |
So a local issue.
We do this in the official alpine images nowadays.
So a local issue. I'm closing this. |
this worked best for me, setting it in Dockerfile, importantly with
|
wesome, you are the most correct answer! Thank you very much. I applaud you. |
Been getting this for a few days now.
The text was updated successfully, but these errors were encountered: