Vagrant,运行vagrant up --provider=docker时出错。

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个回答

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

这样做可以修复所有问题。


如果这个答案是正确的,请将其接受为正确答案! - Thomas Uhrig
是的,这解决了我的问题,太棒了。很抱歉我选你作为正确答案晚了。 - ciwolsey

15
  1. 进入程序和功能
  2. 找到Vagrant并修复

无需重新安装 :)


对我也起作用了,从1.5升级到1.6.3。 - Swav

4

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

记得用;分隔路径条目。


它对于 Vagrant 1.9.7 没有帮助。 - Pastor Cortes

0

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接