question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

wget installation does not work on Alpine

See original GitHub issue

Steps to reproduce

$ docker run -it mhart/alpine-node:6 sh
# wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.0.1/dumb-init_1.0.1_amd64

Expected result

dumb-init is installed, as it happens when using the ubuntu container, e.g…

Actual result

An error message is returned by wget:

Connecting to github.com (192.30.252.120:443) wget: can’t execute ‘ssl_helper’: No such file or directory wget: error getting response: Connection reset by peer

Any thoughts on this?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

252reactions
mikecroftcommented, Aug 17, 2016

FYI for others coming across this, adding the above commands to my Dockerfile did not work, I needed to specifically add the ca-certificates to wget like this:

 RUN   apk update \                                                                                                                                                                                                                        
  &&   apk add ca-certificates wget \                                                                                                                                                                                                      
  &&   update-ca-certificates    

that worked perfectly and my image built with no problems.

111reactions
golorodencommented, May 1, 2016

Okay, forget it … it was a problem with the CA certificates on Alpine Linux. You need to run

# apk update
# apk add ca-certificates
# update-ca-certificates

before running wget, then it works 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Alpine: why wget and not curl? - Quentin McGaw
Alpine comes with wget implemented in its Busybox multi-call binary. You can try it with: docker run -it --rm busybox wget copy. But...
Read more >
setup-apkrepos - wget on https behind proxy (#10449) · Issues
hi,. it seems there is a problem to get mirrors.txt (eg. MIRRORS_URL=https://mirrors.alpinelinux.org/mirrors.txt) behind a proxy.
Read more >
Run curl, vim (vi), wget, nano, bash on Alpine Docker Containers
Install curl, vim (vi), wget, nano, bash on Alpine Docker Container ... If you can't run curl , vi , nano , bash...
Read more >
Install packages in Alpine docker - Stack Overflow
The equivalent of apt or apt-get in Alpine is apk. A typical Dockerfile will contain, for example: RUN apk add --no-cache wget.
Read more >
How to install package [ bash, tree, curl, wget ] in alpine ...
Connect to the container; Run the apk add command. Example #1 Docker alpine install bash. The most popular shell, Bash! That is not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found