Browse Source

new: [host] new way to declare certificate and allow our registry to be used.

postgres
Valentin Lab 7 years ago
parent
commit
79091d9a3a
  1. 6
      precise/host/hooks/install.d/70-0k.sh

6
precise/host/hooks/install.d/70-0k.sh

@ -97,9 +97,15 @@ mkdir -p /opt/apps
type -p curl >/dev/null 2>&1 || apt-get install -y curl </dev/null
if ! [ -r /etc/ssl/ca.0k.io.pem ]; then
## This does not seem to work anymore (docker v1.12, ubutnu 14.04 on gani)
echo "Fetching 0k.io CA certificate..."
curl http://docker.0k.io/get/ca.0k.io.pem > /etc/ssl/ca.0k.io.pem
cat /etc/ssl/ca.0k.io.pem >> /etc/ssl/certs/ca-certificates.crt
## This is the new way: https://docs.docker.com/engine/security/certificates/
mkdir -p /etc/docker/certs.d/docker.0k.io
ln -sf /etc/ssl/ca.0k.io.pem /etc/docker/certs.d/docker.0k.io/ca.crt
fi
service docker restart

Loading…
Cancel
Save