Reputation: 9518
Running a tool that was hitting Google Storage from within Docker, I kept getting the following error: "x509: certificate signed by unknown authority".
I reviewed several articles that suggested installing ca-certificates would solve this problem for me, but doing so within my docker build had no effect.
How can I access Google Storage from within Docker?
Upvotes: 3
Views: 1764
Reputation: 3282
Or in the alpine image, adding ca-certificates
also worked for me:
RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
Upvotes: 0
Reputation: 9518
In my particular case, the issue came about because I was using a default ubuntu:18.04 Docker image without the Google Cloud SDK installed.
When I instead switched to a Docker image that had the Google Cloud SDK preinstalled, such as gcr.io/cloud-genomics-pipelines/io, or if I installed the tools within the Ubuntu instance, this issue was resolved.
Upvotes: 3