Add Docker registry certificate to Docker application on my Mac

I have a Docker secure registry setup and I would like to push/pull images from my Mac. I have installed Docker Quickstart Terminal in Mac and the only way I could authenticate to the registry is

1. Do a docker-machine ssh default
2. Drop the CRT file in /etc/docker/certs.d/abc-registry.com/ca.crt
3. sudo /etc/init.d/docker restart

If I do not do the aforementioned steps on every boot, I get the following error:

  • How to create a docker cluster with MQ without Kubernetes
  • Unable to create Persistent Volume Claim for PetSet on CoreOS
  • Docker build fails in apt-get
  • docker-compose scale service with independent volumes
  • How to share java-packages between docker-container via link?
  • Docker: open container port to all other containers
  • v2 ping attempt failed with error: Get https://abc-registry.com/v2/: x509: certificate signed by unknown authority
    v1 ping attempt failed with error: Get https://abc-registry.com/v1/_ping: x509: certificate signed by unknown authority
    

    Is there a way to permanently add the certs to docker ? Or stop docker app from regenerating certs ?

  • Is it possible to commit only a subset of the changes to a docker image?
  • docker client (docker 1.12/centos) http: server gave HTTP response to HTTPS client
  • two docker machine, same web-app, two different IP, but needs to be sync
  • Connect to MySQL in a docker container (Vagrant on Windows/VirtualBox)
  • Proxying request from webpack 2 using webpack-dev-server to backend api in docker containers
  • Continuous integration from a git lab repository to an amazon server
  • One Solution collect form web for “Add Docker registry certificate to Docker application on my Mac”

    Try this from https://github.com/SvenDowideit/boot2docker/blob/4942238743be6a4c6cb930353c7f09dc01006cfa/README.md

    From Boot2Docker version 1.6.0, you can add your Registry server’s
    public certificate (in .pem format) into the
    /var/lib/boot2docker/certs/ directory, and Boot2Docker will
    automatically load it from the persistence partition at boot.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.