Skip to content

Instantly share code, notes, and snippets.


auxten auxten

View GitHub Profile
kekru / 1-Enable Docker Remote API with TLS client
Last active Apr 23, 2021
Docker Remote API with client verification via daemon.json
View 1-Enable Docker Remote API with TLS client

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

#!/usr/bin/env bash
# Names of latest versions of each package
export VERSION_PCRE=pcre-8.39
export VERSION_ZLIB=zlib-1.2.8
export VERSION_LIBRESSL=libressl-2.4.2
export VERSION_NGINX=nginx-1.11.3
# URLs to the source directories

Bash Shortcuts

visual cheetsheet


command description
ctrl + a Goto BEGINNING of command line
nicktoumpelis /
Created Apr 23, 2014
Cleans and resets a git repo and its submodules
git clean -xfd
git submodule foreach --recursive git clean -xfd
git reset --hard
git submodule foreach --recursive git reset --hard
git submodule update --init --recursive
rmascarenhas /
Created Nov 16, 2012
Undoing your last command
# undo: reverts the last command, as long as there is a registered handler
# for it.
# Usage:
# $ undo
# There are no options.
# There are by default registered handlers for the following commands:
jordanorelli / client.go
Created May 7, 2012
rpc server example in go
View client.go
package main
import (
func main() {