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.

  • Do I want a container handling multiple requests?
  • Can not scale service to multiple container when binding host port in docker-compose.yml
  • How to run 2 commands with docker exec
  • How to remove old Docker containers
  • Issue with the NPM
  • Docker containers in real life
  • 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.

  • Running multiple dependent apps each with their own docker compose file
  • Installing node module in Docker on Windows fails on symlink creation
  • Can't get Pod info in the kubernetes cluster
  • Exhausted Virtual Memory Installing SyntaxNet Using Docker Toolbox
  • Accessing virtual com ports inside a WS2016 docker container
  • Allowing custom scp/sftp/rsync in sandbox shell
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.