Please note that the Vagrant issue tracker is reserved for bug reports and
enhancements. For general usage questions, please use the Vagrant mailing list:
https://groups.google.com/forum/#!forum/vagrant-up. Thank you!
1.9.5
MacOS Sierra 10.12.5
NA
Vagrant.configure("2") do |config|
config.vm.provider "docker" do |d|
d.image = "hello-world"
end
end
$ vagrant up --provider docker
Bringing machine 'default' up with 'docker' provider...
The executable 'docker' Vagrant is trying to run was not
found in the PATH variable. This is an error. Please verify
this software is installed and on the path.
Vagrant should have detected the docker provider and set up an intermediate (boot2docker) VM
Nothing happened except the Debug output.
Tried uninstalling and reinstalling Vagrant completely. To no avail.
Downgrading to 1.8.7 however did work!
Hi there. This is due to a change in the options, which you can see here:
https://www.vagrantup.com/docs/docker/configuration.html#force_host_vm
Just add a d.force_host_vm = true and that should resolve the issue. Cheers!
Haven't tested it yet but I guess someone should change the docs then where it says:
On systems that cannot run Linux containers natively, such as Mac OS X or Windows, Vagrant automatically spins up a "host VM" to run Docker.
Hope that would keep others from spending hours trying to find out why this happens.
@MaartenW Ah, I missed that in the docs when updating the options. Thanks, I'll get that fixed up as well.
I'm going to lock this issue because it has been closed for _30 days_ โณ. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Most helpful comment
Haven't tested it yet but I guess someone should change the docs then where it says:
Hope that would keep others from spending hours trying to find out why this happens.