Docker-alpine: wget doesn't work with OpenSSL in 3.6. LibreSSL does work

Created on 8 Jul 2018  路  4Comments  路  Source: gliderlabs/docker-alpine

$ docker run alpine:3.6 sh -c 'apk --no-cache add openssl; wget -O- https://alpinelinux.org' 
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
(1/3) Installing libcrypto1.0 (1.0.2o-r0)
(2/3) Installing libssl1.0 (1.0.2o-r0)
(3/3) Installing openssl (1.0.2o-r0)
Executing busybox-1.26.2-r11.trigger
OK: 7 MiB in 16 packages
Connecting to alpinelinux.org (88.159.20.184:443)
ssl_client: alpinelinux.org: TLS connect failed
wget: error getting response: Connection reset by peer
$ docker run alpine:3.6 sh -c 'apk --no-cache add libressl; wget -O- https://alpinelinux.org'
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
(1/1) Installing libressl (2.5.5-r2)
Executing busybox-1.26.2-r11.trigger
OK: 5 MiB in 14 packages
Connecting to alpinelinux.org (88.159.20.184:443)
-                    100% |*******************************|  7989   0:00:00 ETA

<!DOCTYPE html>
<html lang="en">
...

Most helpful comment

@rynop Either install libressl or use alpine:3.8 and install nodejs. I don't see why those node images exist if you can install from the repos

All 4 comments

We are seeing the same behavior in our build that uses the node:8-alpine image that uses alpine:3.6 as its base. It is breaking quite a few of our builds.

Is there a workaround for this? I'm trying to use node:8-alpine - which uses 3.6 under the covers, and I'm getting this error.

@rynop Either install libressl or use alpine:3.8 and install nodejs. I don't see why those node images exist if you can install from the repos

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gliptak picture gliptak  路  4Comments

michaelshobbs picture michaelshobbs  路  3Comments

mterzo picture mterzo  路  4Comments

ncopa picture ncopa  路  4Comments

konradjurk picture konradjurk  路  5Comments