From 79091d9a3a9fb172bc16f3c160c5e0f131813434 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Fri, 13 Jan 2017 10:56:43 +0800 Subject: [PATCH] new: [host] new way to declare certificate and allow our registry to be used. --- precise/host/hooks/install.d/70-0k.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/precise/host/hooks/install.d/70-0k.sh b/precise/host/hooks/install.d/70-0k.sh index 1903a6c..09115a4 100755 --- a/precise/host/hooks/install.d/70-0k.sh +++ b/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 /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