Skip to content

Instantly share code, notes, and snippets.

@cameronbrunner
cameronbrunner / docker-configure-tls.sh
Last active April 26, 2022 17:15 — forked from ivan-pinatti/docker-configure-tls.sh
Enable TLS in Docker service running in Ubuntu - #docker #docker-tls #tls #ubuntu
#!/usr/bin/env bash
: ' Script that enables TLS for Docker service in Ubuntu 16.x
This script is intended to be run as root
It;
- Generates the keys
- Creates the daemon.json Docker config file