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.

  • How to install new packages into non-root Docker Container?
  • What does Docker run --storage-opt size=XYZ means?
  • How do I access a USB drive on a OSX host from inside a docker container?
  • How to set up a simple docker-contained reverse-proxying (nginx) server?
  • Using Docker API to pull from a private registry
  • Cannot connect to the Docker daemon at unix:/var/run/docker.sock. Is the docker daemon running?
  • According to:
    https://docs.docker.com/engine/security/certificates/

    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 deploy web service on Docker container
  • Starting vncserver using supervisord inside a Linux container
  • Not able to access Kibana running in a Docker container on port 5601
  • Docker running nginx plus jar
  • Docker cannot start MongoDb with attached volume through data-only container
  • Docker stats from java
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.