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 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);