从 atlas 本地下载 vagrant box 文件并进行配置 [英] Download vagrant box file locally from atlas and configuring it
问题描述
我想从 Atlas 下载一个 vagrant box 文件,以便稍后在本地与我的 vagrant 文件一起使用.我该怎么做,我该如何配置?
要下载文件,您必须在 URL 中添加版本和提供程序.例如下载 trusty64 首先你需要它的 URL 是https://app.vagrantup.com/ubuntu/boxes/trusty64/>
然后您必须在之后添加版本和提供程序,对于我们的示例,下载 URL 将是.
https://app.vagrantup.com/ubuntu/boxes/trusty64/versions/20180206.0.0/providers/virtualbox.box
然后你必须从你的流浪文件本地添加它.
要将其本地添加到 vagrant 文件,请使用以下命令
vagrant box 添加 foo-box/path/to/vagrant-box.boxvagrant init foo-box流浪起来
这将创建 vagrantfile,您可以配置 vagrant 文件.
I want to download a vagrant box file from Atlas for using it later locally with my vagrant file. How can I do this, and how can I configure it?
To download a file you have to add version and provider in the URL. For example for downloading trusty64 First you need its URL which is https://app.vagrantup.com/ubuntu/boxes/trusty64/
then you have to add version and provider afterwards, for our example the download URL would be.
https://app.vagrantup.com/ubuntu/boxes/trusty64/versions/20180206.0.0/providers/virtualbox.box
Then you have to add it locally from your vagrant file.
To add it locally to vagrant file use the following command
vagrant box add foo-box /path/to/vagrant-box.box
vagrant init foo-box
vagrant up
This will create the vagrantfile and you can configure the vagrant file.
这篇关于从 atlas 本地下载 vagrant box 文件并进行配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!