This is a slightly customized version of the default host used by the docker provider in vagrant.
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.
- Default docker host VM (Vagrantfile)
- Vagrant Docker provider