Skip to content

Instantly share code, notes, and snippets.

@linki
Last active August 29, 2015 14:05
Show Gist options
  • Save linki/0f4895c33d129cc80302 to your computer and use it in GitHub Desktop.
Save linki/0f4895c33d129cc80302 to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "99designs/ubuntu-docker"
# Create a private network, which allows host-only access to the machine
# using a specific IP.
config.vm.network "private_network", ip: "192.168.8.8"
# Forward the usual dockers ports to the hostmachine
(49000..49900).each do |port|
config.vm.network "forwarded_port", guest: port, host: port, protocol: 'tcp'
config.vm.network "forwarded_port", guest: port, host: port, protocol: 'udp'
end
# Symlink local folders to the vm
# config.vm.synced_folder "~/code/", "/code", create: true
end
@linki
Copy link
Author

linki commented Aug 12, 2014

export DOCKER_HOST=tcp://192.168.8.8:2375

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment