Skip to content

Instantly share code, notes, and snippets.

View ggotti's full-sized avatar

Gerard Gigliotti ggotti

  • Ippon Australia
  • Melbourne, Australia
View GitHub Profile
@ggotti
ggotti / README.MD
Last active May 29, 2017 05:30
Docker-compose file for spinning up a Docker Registry on a Rancher instance.

Docker Registry

Docker-Compose file for creating a basic Docker Registry on a Rancher instance.

  1. Create registry folder: mkdir /registry/
  2. Save credentials
docker run --entrypoint htpasswd registry:2 -Bbn testuser testpassword > auth/htpasswd
  1. Copy docker-compose.yml file into Rancher. Enjoy.
@ggotti
ggotti / _README.md
Last active January 30, 2018 18:05 — forked from schickling/_README.md
Script to import and export docker-machine configurations to sync between hosts/collaborators

docker-machine import/export

Script to import and export docker-machine configurations to sync between hosts/collaborators. Based on Schickling gist.

This version copies the

Export (on host A)

$ docker-machine ls
var gistPrefix = 'http://gist.github.com/',
// Cache document.write so that it can be restored once all Gists have been
// embedded.
cachedWrite = document.write,
body = $('body'),
// Map each p.gist to an object that contains the paragraph to be replaced
// and the Gist's identifier.
gists = $('p.gist').map(function(n, p) {
p = $(p);