Skip to content

marvinpinto-archive/docker-host-vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Docker Host VM

This is a slightly customized version of the default host used by the docker provider in vagrant.

Example

Clone this repo somewhere and reference its Vagrantfile using the vagrant_vagrantfile parameter in the vagrant file for your docker project. For example:

Vagrant.configure("2") do |config|
  config.vm.provider "docker" do |d|
    d.image = "nginx"
    d.ports = ["80:80", "443:443"]

    # Docker host VM
    d.vagrant_vagrantfile = "/Users/marvin/projects/docker-host-vm/Vagrantfile"
    d.vagrant_machine = "docker-host-vm"
  end
end

Using the example above, you should then be able to head over to http://192.168.50.4 and get the "Welcome to nginx!" default page.

More context

About

Who needs boot2docker when you have vagrant!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published