Skip to content

Instantly share code, notes, and snippets.

@kekru
kekru / 1-Enable Docker Remote API with TLS client verification.md
Last active September 20, 2025 16:38
Docker Remote API with client verification via daemon.json

Enable Docker Remote API with TLS client verification

Docker's Remote API can be secured via TLS and client certificate verification.
First of all you need a few certificates and keys:

  • CA certificate
  • Server certificate
  • Server key
  • Client certificate
  • Client key

Create certificate files

@benjamin658
benjamin658 / docker-compose.yml
Last active November 1, 2017 08:37
Setting up a consul cluster and registrator on Rancher.
version: '2'
services:
consul-lb:
image: rancher/lb-service-haproxy:v0.7.8
ports:
- 8400
- 8500
- 8600
expose:
@vovimayhem
vovimayhem / docker-compose.yml
Created June 6, 2017 21:17
ELK stack example
version: "2"
volumes:
log-data:
driver: local
services:
elasticsearch:
image: elasticsearch:5.0
ports:
@Stono
Stono / create-docker-tls.sh
Last active February 4, 2026 02:30
Creating and setting up Docker for TLS
#!/bin/bash
# This script will help you setup Docker for TLS authentication.
# Run it passing in the arguement for the FQDN of your docker server
#
# For example:
# ./create-docker-tls.sh myhost.docker.com
#
# The script will also create a profile.d (if it exists) entry
# which configures your docker client to use TLS
#