Skip to content

Instantly share code, notes, and snippets.

@devpkiconix
devpkiconix / 00-docker-registry-setup.md
Last active August 29, 2015 14:23
Docker registry setup on boot2docker

After this setup, all the images pushed to the registry will be available in ~/registry/data directory.

Steps:

  1. Install boot2docker. this will be our registry server
  2. Run boot2docker. This should mount user folder from host (e.g. /Users-> /Users). We will host the registry files in this tree, at: ~/registry/data
  3. Save its IP address, REGISTRY_HOST=$(boot2docker ip)
  4. Run registry. Note that this must be executed on the host machine for the shell to interpret ~ correctly.
@devpkiconix
devpkiconix / config.sh
Created November 9, 2013 18:10
A simple script to generate all certs needed for creating self-signed CA Certificate, server private key + Certificate, and a client priv key + cert
## -------------------------------------------------------------
## ------------------- CONFIG SECTION BEGIN --------------------
# Passwords
CAPASS=1234 # password for CA priv key
SERVERPASS=1234 # password for server priv key
CLIENTPASS=1234 # password for client priv key
KEYSIZE=2048 # size of keys
ALGO=aes128