Closed DaniDD closed 4 years ago
apk update && apk upgrade solve this issue
The full error was this:
Connecting to github.com (140.82.112.4:443)
ssl_client: github.com: TLS connect failed
wget: error getting response: Connection reset by peer
The fix is adding this (before using wget
):
apk add --update --no-cache --upgrade ssl_client ca-certificates-bundle
I now get the following error with docker build:
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
ca-certificates-bundle (missing):
required by: world[ca-certificates-bundle]
When I replace 'ca-certificates-bundle' with 'ca-certificates' it works.
@rbokhorst, are you building your own using the build scripts?
When I run the build locally, it is using Alpine 3.12 as the base.
It looks like ca-certificates-bundle
was added in 3.12: https://pkgs.alpinelinux.org/packages?name=ca-*&branch=v3.12&repo=main&arch=x86_64
If you change the branch to an older version, you will not see ca-certificates-bundle
.
ca-certificates-bundle
is dependent on ca-certificates
. I was able to use ca-certificates
in the Dockerfile (even for Alpine 3.12) and it builds fine.
Hi Jonathan, I am doing plain "docker build -t
@rbokhorst,
You need to tell Docker to clear your cache. Example: docker build --pull --no-cache -t
See this Stackoverflow question for more details: https://stackoverflow.com/a/58115741/423351
cant build, it shows an TLS error