Skip to content

Instantly share code, notes, and snippets.

@lazabogdan
lazabogdan / boot2docker-nfs.rb
Last active August 29, 2015 14:19 — forked from mattes/boot2docker-nfs.rb
docker-machine / boot2docker with NFS instead of vboxsf; it shares /Users and the current directory to /apps/$current_directory_basename
#!/usr/bin/env ruby
# Usage
# $ docker-machine create my-machine123 -d virtualbox
# $ ruby <(curl -L http://git.io/vvFRw) my-machine123
# https://gist.github.com/lazabogdan/fa769cb5f80085a2b78f
require 'erb'
app_path = Dir.getwd