docker-alpine icon indicating copy to clipboard operation
docker-alpine copied to clipboard

wget doesn't work with OpenSSL in 3.6. LibreSSL does work

Open frebib opened this issue 7 years ago • 4 comments

$ 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">
...

frebib avatar Jul 08 '18 14:07 frebib

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.

phairoh avatar Jul 09 '18 17:07 phairoh

We had the same problem recently: https://gitlab.com/gitlab-org/gitlab-ce/issues/48978#note_86799573.

ayufan avatar Jul 16 '18 20:07 ayufan

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 avatar Aug 29 '18 03:08 rynop

@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

frebib avatar Aug 29 '18 10:08 frebib