How to make a docker client trust a self-signed certificate on a token authorization server

I am trying to set up a vock v2 registry that includes an auth token using self-signed certificates.

I can make my docker client trust the docker registry (by adding ca.crt to the file / etc / docker / certs.d / registry.example.com / in boot2docker)

I'm not sure how to tell the docker v2 registry to trust the auth server. I get the following error:

FATA[0003] Error pushing to registry: Get https://docker-auth.example.com/auth? scope=repository%3Atest%3Apull%2Cpush&service=registry.example.com: x509: certificate signed by unknown authority 

I am using docker authorization server here: https://github.com/brandnetworks/docker_auth

+4
source share

All Articles