Skip to content

Instantly share code, notes, and snippets.

View balfourwong's full-sized avatar
:electron:
Be curious.

Balfour Wong Limited balfourwong

:electron:
Be curious.
View GitHub Profile

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

@balfourwong
balfourwong / install-docker.sh
Created May 25, 2018 20:29 — forked from brianz/install-docker.sh
Install docker on Amazon Linux
#!/bin/bash
#
# steps taken verbatim from:
# http://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html#install_docker
#
sudo yum update -y
sudo yum install -y docker
sudo service docker start
sudo usermod -a -G docker ec2-user
# log out and log in to pickup the added group
@balfourwong
balfourwong / install-docker.sh
Created May 25, 2018 18:22 — forked from bisubus/install-docker.sh
Installation script for docker and docker-compose, Debian and Ubuntu
#!/bin/sh
confirm () {
read -r -p "${1:-Are you sure? [y/N]} " response
case $response in
[yY][eE][sS]|[yY])
# true
echo 1;
;;
*)