我在我的环境中使用 Vagrant,但遇到了一个小问题:
$vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'base' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Adding box 'base' (v0) for provider: virtualbox
default: Downloading: base
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.
Couldn't open file /Users/.../base
我已经使用 vagrant init
初始化了我的项目,但由于某种原因 vagrant up
拒绝工作。
最佳答案
看来您可能仅使用 vagrant init
创建了一个 Vagrant 项目。这将创建您的 Vagrantfile,但它不会定义一个框。
相反,您可以尝试
$ vagrant init hashicorp/precise32
$ Vagrant 起来
它使用标准的 Ubuntu 镜像。 Vagrant 网站有一个 Getting Started其中给出了一些很好的例子。
关于vagrant - 尝试 vagrant up 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23874260/