export VAGRANT_DEFAULT_PROVIDER variable as below and invoke vagrant up command export VAGRANT_DEFAULT_PROVIDER=docker
On Sun, Nov 24, 2019 at 1:22 AM maurice hanique <mauricehani...@gmail.com> wrote: > *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!!!! > > > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/vagrant/issues > IRC: #vagrant on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Vagrant" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to vagrant-up+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/vagrant-up/dfd92619-e337-403b-acf6-e27462887236%40googlegroups.com > <https://groups.google.com/d/msgid/vagrant-up/dfd92619-e337-403b-acf6-e27462887236%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/vagrant/issues IRC: #vagrant on Freenode --- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAAFrRNabdnRAJEwqjdCtFhoFOqvSqZzqgNJGfToQ%2BhjaOO_cOg%40mail.gmail.com.