I am trying to publish a docker image to a private repository, but I cannot figure out where I am suppose to place the SSL cert on a Windows machine.
According to this page, the cert is supposed to go in the /etc/docker/certs.d/HOSTNAME directory. This is clearly not a Windows path. However when I run the docker terminal and I type cd /etc it does take me to a working directory.
After some investigation I discovered it was going to C:\Program Files\Git\etc, so I created a docker\certs.d\docker-registry.lan (docker-registry.lan is our internal registry) directory under that path. Then I restart docker machine with the docker-machine stop and docker-machine start commands.
However when I try a push I am getting an error that says
x509: certificate signed by unknown authority This key works fine for others that are doing this through Linux so I know the key is fine. I believe the problem is that I am not storing the key in the correct location.
I have tried a bunch of different locations for the key, but none seem to work. This has to be an easy fix that I am missing. Can someone who has solved this help me?
default, which is actually a VirtualBox vm. You can usedocker-machine scp local_certs_path default:/etc/docker/certs.d/HOSTNAMEto copy the certs to that machine.$ docker-machine scp /c/ca.crt default:/etc/docker/certs.d/docker-registry.lanI get the following errorError loading host: Error loading host: Host does not exist: "C"//c/ca.crt?//c/ca.crt: No such file or directoryI noticed that when I rundocker-machine envit listsDOCKER_CERT_PATH="C:\Users\rmclaughlin\.docker\machine\machines\defaultis this that path I need?