Skip to content

Instantly share code, notes, and snippets.

@shihanng
Created December 1, 2015 06:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shihanng/397fec575d44115c98c4 to your computer and use it in GitHub Desktop.
Save shihanng/397fec575d44115c98c4 to your computer and use it in GitHub Desktop.
Developing with Vagrant and Docker @ HDE Blog (DockerHost/Vagrantfile)
Vagrant.configure("2") do |config|
config.vm.box = "hashicorp/precise64"
config.vm.provision "docker"
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.synced_folder "../hello", "/src/hello", type: "nfs"
config.vm.provision "shell", inline:
"ps aux | grep 'sshd:' | awk '{print $2}' | xargs kill"
# web port
config.vm.network :forwarded_port, host: 8080, guest: 8000
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment