docker-alpine
docker-alpine copied to clipboard
wget doesn't work with OpenSSL in 3.6. LibreSSL does work
$ 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">
...
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.
We had the same problem recently: https://gitlab.com/gitlab-org/gitlab-ce/issues/48978#note_86799573.
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