Problem:
Vagrant completely ignores the config.vm.provider = docker option and uses virtualbox provider instead
I have this vagrantfile:Vagrant.configure("2") do |config|
config.vm.provider "docker" do |d|
d.image = "foo/bar"
end
end
When I run Vagrant Up I get this:
Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:
vm:
* A box must be specified.
When I run Vagrant Up --provider = docker I get this:
The provider 'docker' that was requested to back the machine
'default' is reporting that it isn't usable on this system. The
reason is shown below:
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.
System:
Windows 10 64bit
Hyper-V turned off
Docker NOT installed
Virtualbox: Installed
Vagrant: 2.2.6
Expectation:
I would expect Vagrant to kick off a boot2docker virtual machine and use that to run the docker image. Instead it completely ignores the config.vm.provider "docker" option and uses the virtualbox provider instead. I am lost. This used to work in a previous version of Vagrant. What am I doing wrong? I don't want to run docker on my windows host system. I WANT to use a virtualbox VM to run docker. How can I do this? Please help!!!!