流浪命令问题

时间:2015-07-30 18:35:36

标签: vagrant virtualbox vagrantfile vagrant-plugin

我是Vagrant的新人。我的主管要我运营一个网站。首先,他告诉我安装VirtualBox和Vagrant。他发给我bootstrap.sh和Vagrantfile文件。他告诉我将其复制到名为" data_repo"的文件夹中。在那之后他告诉我跑步"流浪汉"来自" data_repo"的命令。我做到了,但它给了我以下错误:

A Vagrant environment or target machine is required to run this
command. Run `vagrant init` to create a new Vagrant environment. Or,
get an ID of a target machine from `vagrant global-status` to run
this command on. A final option is to change to a directory with a
Vagrantfile and to try again.

你能告诉我解决方法吗?

3 个答案:

答案 0 :(得分:1)

我在Windows机器上遇到了同样的问题,我用这种方式解决了这个问题:将文件Vagrantfile.txt重命名为Vagrantfile(不带.txt)。

答案 1 :(得分:0)

我在linux系统上遇到了同样的问题。我错误地删除了 Vagrantfile 文件。

答案 2 :(得分:0)

应该只有一个Vagrantfile。 确保该文件夹(data_repo)中有Vagrantfile(V大写且没有扩展名)。

按照此处的文档

https://www.vagrantup.com/docs/getting-started/

相关问题