【问题标题】:Vagrant, error when running vagrant up --provider=dockerVagrant,运行 vagrant up 时出错 --provider=docker
【发布时间】:2014-05-08 13:50:17
【问题描述】:

我正在尝试在 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.

【问题讨论】:

    标签: windows vagrant docker bsdtar


    【解决方案1】:
    1. 完全卸载 Vagrant,删除 C:\HashiCorp
    2. 重新安装 Vagrant。

    这将解决所有问题。

    【讨论】:

    • 如果此答案正确,请采纳为正确答案!
    • 是的,这解决了我的问题,太棒了。很抱歉迟到才选择你作为正确答案。
    【解决方案2】:
    1. 转到程序和功能
    2. 寻找流浪者并修复

    无需重新安装:)

    【讨论】:

    • 也为我工作,从 1.5 到 1.6.3
    【解决方案3】:

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

    记得用;分隔路径条目。

    【讨论】:

    • 对 Vagrant 1.9.7 没有帮助
    【解决方案4】:

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

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

    【讨论】:

      猜你喜欢
      • 2016-09-04
      • 2016-07-06
      • 1970-01-01
      • 2023-04-11
      • 1970-01-01
      • 1970-01-01
      • 2016-10-16
      • 1970-01-01
      • 2014-07-15
      相关资源
      最近更新 更多