Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vagrant, error when running vagrant up --provider=docker

I'm trying to test the new docker support in vagrant 1.6. I'm on windows and I've setup my vagrant file but when I run "vagrant up --provider=docker" I get the following:

Bringing machine 'default' up with 'docker' provider...
==> default: Docker host is required. One will be created if necessary...
default: Vagrant will now create or start a local VM to act as the Docker
default: host. You'll see the output of the `vagrant up` for this VM below.
default:
default: Box 'mitchellh/boot2docker' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
default: Loading metadata for box 'mitchellh/boot2docker'
default: URL: https://vagrantcloud.com/mitchellh/boot2docker
default: Adding box 'mitchellh/boot2docker' (v0.8.0) for provider: virtualbox
default: Downloading: https://vagrantcloud.com/mitchellh/boot2docker/version/1/provider/virtualbox.box
default: Progress: 100% (Rate: 2999k/s, Estimated time remaining: --:--:--)
The executable 'bsdtar' 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.
like image 995
ciwolsey Avatar asked May 08 '14 13:05

ciwolsey


People also ask

How do I use Docker as a vagrant provider?

There are two ways you can use Docker as provider. Using an image from the Docker registry: Vagrant.configure("2") do |config| config.vm.provider "docker" do |d| d.build_dir = "." end end First you have to create a directory to store the configuration files for your environment and change to this directory.

What is boot2docker and how do I use it with Vagrant?

Vagrant’s Docker provider, by default, uses this boot2docker box as the target for its Docker functionality when you are running Vagrant on anything other than Linux.

When does the dockerfile get rebuilt in Vagrant?

The Dockerfile is rebuilt when vagrant reload is called. When using Docker, Vagrant automatically converts synced folders and networking options into Docker volumes and forwarded ports.

What is the difference between override variable and Docker variable?

The override variable allows you to change top-level settings, while the docker variable allows you to setup docker-specific stuff. Have a read of the vagrant docker provider and vagrant docker provisioning documentation. Once you've set this up, you can run your Vagrant machine with:


1 Answers

  1. Uninstall Vagrant completely, remove C:\HashiCorp.
  2. Reinstall Vagrant.

This will fix everything.

like image 57
Mitchell Avatar answered Nov 02 '22 23:11

Mitchell