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
wget installation does not work on Alpine #73
Comments
Okay, forget it … it was a problem with the CA certificates on Alpine Linux. You need to run
before running |
FYI for others coming across this, adding the above commands to my Dockerfile did not work, I needed to specifically add the
that worked perfectly and my image built with no problems. |
openssl package may be required too: apk update && apk add ca-certificates && update-ca-certificates && apk add openssl |
How difficult would it be to make an apk package for dumb-init? We're experienced in debian packaging but unfamiliar with alpine's ecosystem and would love help if it's possible |
For those who arrive here, another solution is simply to use Example: to install instead of what's suggested by Composer (that stumbles upon the CA issues on this post): |
I had
|
I frown upon |
As of Alpine Linux 3.3 there exists a new --no-cache option for apk. It allows users to install packages with an index that is updated and used on-the-fly and not cached locally:
Update on this; While that fixed it for https protocol, it caused issues for http protocol. Reinstalling wget on alpine fixed
|
explanation for the line RUN apk --no-cache add openssl Yelp/dumb-init#73
See Yelp/dumb-init#73 for more discussion and alternatives
* to avoid failure executing wget * ref. Yelp/dumb-init#73
Previously, it occassionally happened (EBI cluster, PHIPO vagrant server) that wget failed with a (connection reset by peer) error, see Yelp/dumb-init#73. The problem is solved by re-installing openssl and wget.
Refactor the "Update CA certificates flow" part for fixed "wget: error getting response: Connection reset by peer" problem. Problem: ``` wget -q -O- https://example.tw | bash | tee test.yml wget: error getting response: Connection reset by peer ``` Reference: * wget installation does not work on Alpine · Issue #73 · Yelp/dumb-init - Yelp/dumb-init#73 * Alpine Linux 出現 wget: error getting response: Connection reset by peer 解決辦法 | 刺客博客 - https://cikeblog.com/alpine-linux-wget-error-getting-response-connection-reset-by-pee.html
`wget` doesn't work on Alpine when making a request via an HTTPS proxy. See Yelp/dumb-init#73 but the workarounds there don't work either.
`wget` doesn't work on Alpine when making a request via an HTTPS proxy. See Yelp/dumb-init#73 but the workarounds there don't work either.
wget: error getting response: invalid argument Yelp/dumb-init#73 (comment)
Steps to reproduce
Expected result
dumb-init
is installed, as it happens when using theubuntu
container, e.g..Actual result
An error message is returned by wget:
Any thoughts on this?
The text was updated successfully, but these errors were encountered: