参考 http://blog.cloud66.com/x509-error-when-using-https-inside-a-docker-container/

Ubuntu

RUN apt-get install -y ca-certificates

Alpine

RUN apk add --no-cache --update ca-certificates