docker-alpine: IO error when running "apk add"
Every time I try to install a package via apk add I get IO ERRORs:
apk add --update --no-cache ca-certificates
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz: IO ERROR
ERROR: unsatisfiable constraints:
ca-certificates (missing):
required by: world[ca-certificates]
I’m using the alpine:3.6 image on Windows 10 (Docker for Windows - Linux containers)
apk update gives similar results:
apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.6/main: IO ERROR
WARNING: Ignoring APKINDEX.84815163.tar.gz: No such file or directory
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
ERROR: http://dl-cdn.alpinelinux.org/alpine/v3.6/community: IO ERROR
WARNING: Ignoring APKINDEX.24d64ab1.tar.gz: No such file or directory
2 errors; 11 distinct packages available
I don’t seem to have a connection problem:
curl -v http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
* Trying 151.101.0.249...
* TCP_NODELAY set
* Connected to dl-cdn.alpinelinux.org (151.101.0.249) port 80 (#0)
> GET /alpine/v3.6/community/x86_64/APKINDEX.tar.gz HTTP/1.1
> Host: dl-cdn.alpinelinux.org
> User-Agent: curl/7.56.0
> Accept: */*
>
< HTTP/1.1 200 OK
< X-Bst-Request-Id: bNzl6h:H8B:113240
< X-Bst-Info: t=1508702467,h=03d,p=42804_3138:2_11861,u=402895141,c=2339,v=7.9.58904.98
< Server: nginx
< Content-Type: application/octet-stream
< Last-Modified: Tue, 17 Oct 2017 13:38:29 GMT
< ETag: "59e607d5-5b580"
< Accept-Ranges: bytes
< Accept-Ranges: bytes
< Content-Length: 374144
< Date: Sun, 22 Oct 2017 20:01:07 GMT
< Via: 1.1 varnish, 1.1 hosted.websense 03d
< X-Served-By: cache-cdg8731-CDG
< X-Cache: MISS
< X-Cache-Hits: 0
< X-Timer: S1508702467.312061,VS0,VE32
< Connection: keep-alive
<
About this issue
- Original URL
- State: open
- Created 9 years ago
- Reactions: 7
- Comments: 19 (1 by maintainers)
Have you tried restarting Docker for Windows? This is usually a DNS caching issue with the VM. If you can reproduce it reliably then maybe we need to get into the VM to debug further.
Hello everyone! Any news on this issue?
I’m still having the problem, with the same very simple Dockerfile
I am facing same issue with
apk add, some package will failed to install and everytime error message will be different, any different packages might fail but mostlygccorg++will fail, always failed to create some filesThese are errors collected when building the exact same project, no file is modified between these attempts, suddenly success during my 3rd attempt, so it totally became a try your luck situation
Wow, 7 years later and no solution. Time to look for a different distro…