如何将Vagrant盒子的所有Provisioner需求打包在一个盒子中以便共享?

时间:2018-12-31 17:16:30

标签: vagrant

我创建了一个无聊的盒子,但是当我测试它时,出现此错误:

There are errors in the configuration of this machine. Please fix
the following errors and try again:

shell provisioner:
* `path` for shell provisioner does not exist on the host system

我用以下命令创建了一个盒子:

vagrant package --base AlpinePythonBox --vagrantfile Vagrantfile --output AlpinePythonBox_0.0.1.box --include python-installer.sh

然后我使用以下命令将 AlpinePythonBox_0.0.1.box 复制到我的盒子中:

vagrant box add AlpinePythonBox AlpinePythonBox_0.0.1.box

然后我尝试使用以下命令使用该命令创建一个框:

vagrant init AlpinePythonBox

在那之后,我跑了流浪汉并得到了那个错误!

我如何创建一个独立的盒子用于使用和共享?

您可以在https://github.com/GLinBoy/VagrantAlpinePythonBox

中看到我无业游民的文件和shell脚本

0 个答案:

没有答案
相关问题