Where to add client certificates for Docker for Mac?

I have a docker registry that I’m accessing behind an nginx proxy that does authentication using client-side ssl certificates.

When I attempt to push to this registry, I need the docker daemon to send the client certificate to nginx.

  • Docker networking and ports
  • amazon ecs Container for Configuration files
  • Docker: LetsEncrypt for development of “Https everywhere”
  • Deploy go app to docker in vagrant
  • Eureka clients in docker container
  • Docker commit without running
  • According to:

    There should be a directory called /etc/docker where these certificates can go. This directory doesn’t exist on Docker for Mac.

    So I thought I’d try putting the certificates inside the virtual machine itself by doing:

    docker-machine ssh default

    This resulted in docker complaining:
    Error response from daemon: crypto/tls: private key does not match public key

    I don’t believe there is anything wrong with my key pair, and I’ve done this same setup on linux (much easier) without problems.

  • How to shrink size of Docker image with NodeJs
  • Proxying request from webpack 2 using webpack-dev-server to backend api in docker containers
  • How to clean up /var/lib/docker/vfs directory
  • Restarting machines in a docker swarm on AWS
  • docker can't connect to boot2docker because of tcp timeout
  • Deployed war file to docker image cannot be accessed from TOMCAT 8 in Ubuntu 16.04
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.