Skip to content

agindre/inject-docker-certs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Inject Docker Certificates -- Docker Native for Mac

Is this you?

> docker pull somehost/some-image:latest
Error response from daemon: Get https://somehost/...: x509: certificate signed by unknown authority

We got you covered!

To solve this, you want to inject your certificate into the docker xhyve VM.

So,

  1. Make sure the certificate you want inside the Docker native VM is in the current directory.
  2. For good measure, make sure the certificate is valid: openssl x509 -in ./klarna_ca.crt -text -noout
  3. build the image: docker build -t inject-docker-certs .
  4. run the patch: docker run --rm -it -v `pwd`:/certs -v /etc:/vm-etc -e CERTIFICATE=klarna_ca.crt inject-docker-certs
  5. restart docker

Make sure klarna_ca.crt is replaced with whatever filename you might have.

About

Adding certificates to the Docker for Mac beta

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%