Docker-alpine: ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.9/main: network connection aborted

Created on 15 Apr 2019  ·  7Comments  ·  Source: gliderlabs/docker-alpine

Step 7/14 : RUN apk add --no-cache --no-progress mysql-client
---> Running in 30650d12c0c2
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz: network connection aborted
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz: network connection aborted
ERROR: unsatisfiable constraints:
 mysql-client (missing):
required by: world[mysql-client]
Removing intermediate container 30650d12c0c2
The command '/bin/sh -c apk add --no-cache --no-progress mysql-client' returned a non-zero code: 1

Most helpful comment

for me,I solved this problem by replacing the image source. references Alpine Linux 源使用帮助

sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories

All 7 comments

WARNING: Ignoring http://ftp.icm.edu.pl/pub/Linux/distributions/alpine/v3.9/main/x86_64/APKINDEX.tar.gz: temporary error (try again later)
WARNING: Ignoring http://ftp.icm.edu.pl/pub/Linux/distributions/alpine/v3.9/community/x86_64/APKINDEX.tar.gz: temporary error (try again later)

i test mirror`s all crashed

same error

In my case the problem was solved by restarting the network manager of my operating system (Debian) -.-

yes, problem network, mirrors ok

I find a solution in my specific case. The docker container use google DNS which are not available into my network. I have to use specific DNS so change /etc/docker/daemon.json.

{
"dns": ["xxx.yyy.zzz.001", "xxx.yyy.zzz.002"]
}

As far i'm concerned, I even tried this one https://github.com/gliderlabs/docker-alpine/issues/207 and it did'nt work till I even restart my pc.

Finally, I changed the network (wifi from library) i was logged to my personal smartphone and it fixed it

for me,I solved this problem by replacing the image source. references Alpine Linux 源使用帮助

sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories
Was this page helpful?
0 / 5 - 0 ratings

Related issues

mterzo picture mterzo  ·  4Comments

sirhopcount picture sirhopcount  ·  3Comments

robinmonjo picture robinmonjo  ·  4Comments

oarmstrong picture oarmstrong  ·  4Comments

dniku picture dniku  ·  4Comments