I'm using Drone 1.0.0-rc1 with the Docker plugin . My docker registry is only accessible via TLS, however the certificate is self-signed. The whole docker ecosystem complains about it with a similar error message, in case of the Drone build it's this:
x509: certificate signed by unknown authority
Normally I'm able to add the ca as a trusted authority to the OS running the different Docker solutions, however Drone is executing the builds (and the auth itself) inside a short-lived docker container.
How can I make it trust the cert?
A less than stellar but working solution is to add the following setting to the .drone.yml:
insecure: true
This makes it running the docker daemon with the --insecure-registry
argument which according to the docs
First, try using HTTPS.
- If HTTPS is available but the certificate is invalid, ignore the error about the certificate.
- If HTTPS is not available, fall back to HTTP.
In my case I know that my registry isn't even exposed through HTTP so looks good enough.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.