10

我正在尝试在 vagrant 1.6 中测试新的 docker 支持。我在 Windows 上,我已经设置了我的 vagrant 文件,但是当我运行“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

4 回答 4

27
  1. 完全卸载 Vagrant,删除C:\HashiCorp.
  2. 重新安装流浪者。

这将解决所有问题。

于 2014-05-08T16:06:06.517 回答
16
  1. 转到程序和功能
  2. 寻找流浪者并修理

无需重新安装:)

于 2014-05-20T14:07:51.433 回答
4

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

请记住用 . 分隔路径条目;

于 2014-07-11T12:09:20.363 回答
0

按照此处的说明下载和安装包http://gnuwin32.sourceforge.net/packages/libarchive.htm

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

于 2014-11-14T03:40:36.653 回答