cloudbees/docker-certificates

Name: docker-certificates

Owner: CloudBees

Description: Docker image to keep your ca-certificate up2date and provide custom certs for your docker landscape.

Forked from: PhilippHeuer/docker-certificates

Created: 2017-06-29 07:21:24.0

Updated: 2018-03-06 05:57:27.0

Pushed: 2018-02-02 14:11:14.0

Homepage: null

Size: 17

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

CA Certificate Container for Docker


A quick note:

This project provides you with an alpine image that keeps your ca-certificates up2date. It also allows you to add custom certificates to use in all of your docker containers, which is useful if you use a registry with a self-signed certificate.

Quickstart
Run it

First you need to create a data-only container, which will share you cert-data over all containers.

er create --name cert philippheuer/docker-certificates

How to update the RootCA:

er run -it --rm --volumes-from cert philippheuer/docker-certificates ca-update

To use custom certificates, you need to mount them at /etc/ssl/certs_custom/CERTNAME.crt and it will be appended to the root certificate file by running the ca-update script.

er run -it --rm \
volumes-from cert \
volume /LOCALPATH/file.crt:/etc/ssl/certs_custom/file.crt \
ilippheuer/docker-certificates ca-update
How to use

Now you need to append the following part when you create your containers --volumes-from cert:ro. This will mount the ca-certificates.crt in read-ony mode.

Example:

er run -it --rm --volumes-from cert:ro alpine sh
License

Released under the MIT license.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.