wget installation does not work on Alpine
See original GitHub issueSteps 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:
- Created 7 years ago
- Comments:8 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
FYI for others coming across this, adding the above commands to my Dockerfile did not work, I needed to specifically add the
ca-certificates
towget
like this:that worked perfectly and my image built with no problems.
Okay, forget it … it was a problem with the CA certificates on Alpine Linux. You need to run
before running
wget
, then it works 😃