|
@ -97,9 +97,15 @@ mkdir -p /opt/apps |
|
|
type -p curl >/dev/null 2>&1 || apt-get install -y curl </dev/null |
|
|
type -p curl >/dev/null 2>&1 || apt-get install -y curl </dev/null |
|
|
|
|
|
|
|
|
if ! [ -r /etc/ssl/ca.0k.io.pem ]; then |
|
|
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..." |
|
|
echo "Fetching 0k.io CA certificate..." |
|
|
curl http://docker.0k.io/get/ca.0k.io.pem > /etc/ssl/ca.0k.io.pem |
|
|
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 |
|
|
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 |
|
|
fi |
|
|
|
|
|
|
|
|
service docker restart |
|
|
service docker restart |
|
|