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:

  • Not able to ssh using private key
  • Setting up the docker api - modification of docker.conf
  • How to set up connection between Docker containers using AWS Beanstalk and Spring Cloud Netflix
  • Is it feasible to create docker file for each service of my node project?
  • Compile Tensorflow from source with Docker to get CPU speed up
  • How would I have AWS EC2 Container Service grab a docker image from a private repo on Docker Hub using Cloud Formation?
  • 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 ?

  • Docker and Django manage.py
  • Unable to use docker due to ZScaler and certificate issues
  • Docker environment variable security
  • Can't connect to dockerized MongoDB instance
  • Vagrant and docker Protocol error mounting directory windows 7
  • Docker throwing FATA[0000] Error response from daemon
  • 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.