"certificate signed by unknown authority error."
Get the set of corporate root certificates, which should be installed in your corporate-configured browser. Export each (I have two), one at a time, making sure to choose DER format.
1) Create this directory c:\Users\username\certs and copy cer file here.
2) Open Docker Quickstart
$ cd /c/Users/username/certs
3) Convert a DER file (.crt .cer .der) to PEM
$ openssl x509 -inform der -in certificate.cer -out certificate.pem
4) Connect to default machine
$ docker-machine ssh default
docker@default:~$ sudo -s
root@default:/home/docker# mkdir /var/lib/boot2docker/certs
root@default:/home/docker# cp /c/Users/my.username/certs/*.pem /var/lib/boot2docker/certs/
touch /var/lib/boot2docker/bootlocal.sh && chmod +x /var/lib/boot2docker/bootlocal.sh
vi /var/lib/boot2docker/bootlocal.sh
Insert the following and save the file:
#!/bin/sh
mkdir -p /etc/docker/certs.d && cp certs/certificate.pem /etc/docker/certs.d
5) Restart the machine, either by using the reboot command from within the machine, or by using the docker-machine command from the Docker
terminal:
$ docker-machine restart default
Get the set of corporate root certificates, which should be installed in your corporate-configured browser. Export each (I have two), one at a time, making sure to choose DER format.
1) Create this directory c:\Users\username\certs and copy cer file here.
2) Open Docker Quickstart
$ cd /c/Users/username/certs
3) Convert a DER file (.crt .cer .der) to PEM
$ openssl x509 -inform der -in certificate.cer -out certificate.pem
4) Connect to default machine
$ docker-machine ssh default
docker@default:~$ sudo -s
root@default:/home/docker# mkdir /var/lib/boot2docker/certs
root@default:/home/docker# cp /c/Users/my.username/certs/*.pem /var/lib/boot2docker/certs/
touch /var/lib/boot2docker/bootlocal.sh && chmod +x /var/lib/boot2docker/bootlocal.sh
vi /var/lib/boot2docker/bootlocal.sh
Insert the following and save the file:
#!/bin/sh
mkdir -p /etc/docker/certs.d && cp certs/certificate.pem /etc/docker/certs.d
5) Restart the machine, either by using the reboot command from within the machine, or by using the docker-machine command from the Docker
terminal:
$ docker-machine restart default
I would like to say thanks to you because you have shared wonderful information with us, check it once Devops Online Training Bangalore
ReplyDelete