运行流浪汉时出现错误,错误--provider = docker

时间:2014-05-08 13:50:18

标签: windows vagrant docker bsdtar

我试图在vagrant 1.6中测试新的docker支持。我在Windows上,我已经设置了我的流浪文件,但是当我运行" vagrant up --provider = docker"我得到以下内容:

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.

4 个答案:

答案 0 :(得分:27)

  1. 完全卸载Vagrant,删除C:\HashiCorp
  2. 重新安装Vagrant。
  3. 这将解决所有问题。

答案 1 :(得分:16)

  1. 转到“程序和功能”
  2. 查找Vagrant并修复
  3. 无需重新安装:)

答案 2 :(得分:4)

快速解决方案是将mingw二进制位置的路径附加到系统的Path变量,例如: C:\HashiCorp\Vagrant\embedded\mingw\bin

请记住将路径条目与;分开。

答案 3 :(得分:0)

下载&按照http://gnuwin32.sourceforge.net/packages/libarchive.htm

安装包关注说明

然后更新您的Path环境变量以包含bsd可执行文件的安装路径,通常是C:\ Program Files(x86)\ GnuWin32 \ bin

相关问题