Comments (14)
Python needs adding to Dockerfile in order for it to build
RUN apk --update add python
from docker-alpine.
As an update, I've found that if you set the contents of the /etc/apk/repositories
file to a list of mirrors, apk add
is much more fault tolerant.
http://nl.alpinelinux.org/alpine/v3.1/main
http://nl.alpinelinux.org/alpine/v3.1/main
http://dl-2.alpinelinux.org/alpine/v3.1/main
http://dl-3.alpinelinux.org/alpine/v3.1/main
http://dl-4.alpinelinux.org/alpine/v3.1/main
http://dl-5.alpinelinux.org/alpine/v3.1/main
http://mirror.yandex.ru/mirrors/alpine/v3.1/main
http://repos.lax-noc.com/alpine/v3.1/main
http://distrib-coffee.ipsl.jussieu.fr/pub/linux/alpine/alpine/v3.1/main
Then run apk update
and apk add ...
from docker-alpine.
I'm currently seeing exactly this same problem running in VirtualBox on a Ubuntu 14.04 image (using vagrants ubutntu/trusty64 box)
from docker-alpine.
I tracked down the cause of the "Resource temporarily unavailable" errors to intermittent DNS errors. I pointed the vagrant box straight to google's DNS servers and now everything is fine.
from docker-alpine.
I think this might be an upstream issue with apk
. I'm trying to find a good way to reproduce it so I can try and locate the bug.
from docker-alpine.
It looks like an issue with one of the mirrors. When using this image, the error pops up when http://dl-4.alpinelinux.org is called (set in
).I discovered this when I switched over to https://github.com/mini-containers/base as the base image, which pulls from http://nl.alpinelinux.org.
from docker-alpine.
I'm seeing this, too. It's dns errors like @kalak451 said.
But, if there are errors, apk add
should fail.
I've submitted an issue to the upstream issue tracker. http://bugs.alpinelinux.org/issues/4019
from docker-alpine.
It would likely be helpful to have steps for them to reproduce the issue outside of Docker. This would separate any dependency on Docker. I'm guessing that apk
isn't failing correctly on bad DNS responses (which sometimes happen with the VirtualBox DNS proxy). But I haven't thought of a good way to reproduce this outside of Docker to eliminate that part of the chain for them.
from docker-alpine.
It looks like @ncopa might have fixed this in http://git.alpinelinux.org/cgit/apk-tools/commit/?id=944eae4b27d039608dd72b1d7b3ed015c20bdcc0 and http://git.alpinelinux.org/cgit/apk-tools/commit/?id=7e3f4c3d7996811a37393514d6f0eaacae7178e2. Can someone who was experiencing the issue try manually installing http://dl-4.alpinelinux.org/alpine/edge/main/x86_64/apk-tools-2.6.0_rc1-r1.apk first and see if the issue persists?
from docker-alpine.
I'm having the same problem. It's good that this has been fixed upstream (apk add emitting a failure code), but it's still not great to be pulling from a flaky mirror. Is there a way to switch the the pull location to http://nl.alpinelinux.org?
@andyshinn the apk link you reference is 404ing.
from docker-alpine.
I can confirm that upstream has fixed this problem. However, it doesn't work in an exit-on-error way, you've to wait for the apk add
to finish. Better than nothing.
@chriswessels +1
@andyshinn please consider adding more mirrors to /etc/apk/repositories
from docker-alpine.
Can someone open a separate issue for more mirrors? I wasn't aware it would
do automatic fail over if one is down. Definitely something I'll test.
On Apr 29, 2015 8:51 PM, "Yue Du" [email protected] wrote:
I can confirm that upstream has fixed this problem. However, it doesn't
work in an exit-on-error way, you've to wait for the apk add to finish.
Better than nothing.@chriswessels https://github.com/chriswessels +1
@andyshinn https://github.com/andyshinn please consider adding more
mirrors to /etc/apk/repositories—
Reply to this email directly or view it on GitHub
#15 (comment)
.
from docker-alpine.
I just pushed new gliderlabs/alpine:edge
image which has the latest apk-tools
with the exit on error fixes. I`m going to close this issue as the fixes should be available upstream in 3.2. Re-open this issue if it is still not erroring properly during build.
I'll work on the separate issue of multiple repositories for fail over separately.
from docker-alpine.
Python needs adding to Dockerfile in order for it to build
RUN apk --update add python
THANK YOU!
from docker-alpine.
Related Issues (20)
- gliderlabs.com does not hav a valid DNS, so docker builds with thie base image fail HOT 2
- Require image for ARM64 architecture HOT 1
- Issue in minikube docker --> ERROR: http://nl.alpinelinux.org/alpine/v3.5/main: DNS lookup error HOT 1
- Time zone is really necessary?
- Issues with wget/apk in alpine:3.13.0 and up
- dl-cdn.alpinelinux.org was offline (12:18:56am Tuesday, 15 February 2022 gmt ~ 2:52:10am Tuesday, 15 February 2022) HOT 27
- Error 503 Backend is unhealthy HOT 12
- ERROR: unable to select packages: curl (no such package): required by: world[curl] Cleaning up file based variables HOT 1
- apk updates are failing 3.15,3.17 - ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.17/main: temporary error (try again later) HOT 1
- Package Manager Broken (apk update: temporary error) HOT 1
- Some guide for install docker alpine on android device HOT 1
- Issues accessing https://dl-cdn.alpinelinux.org HOT 3
- Build mono fail in docker alpine with Segmentation fault
- My
- Slow internet, bad signature errors
- ccccccjtgkneuknjkdtekjjnhnhhivnbehlhjcudfejr HOT 1
- Nslookup doesn't work in github actions HOT 2
- dcps
- alpine:latest can't use hostname to find a server.
- building docker compose in VM Ubuntu
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-alpine.