Download vagrant box file locally from atlas and configuring it

前端 未结 8 2504
甜味超标
甜味超标 2020-12-12 09:19

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?

8条回答
  •  无人及你
    2020-12-12 09:49

    I faced the same issue not being able to download from script. So manually downloaded the box and added to vagrant as below,

    you can get versions you want from here - https://atlas.hashicorp.com/ubuntu/boxes/precise64

    wget https://atlas.hashicorp.com/ubuntu/boxes/precise64/versions/20160818.0.0/providers/virtualbox.box
    
    cd my_vagrant_project
    vagrant box add precise64 ~/Downloads/precise-server-cloudimg-amd64-vagrant-disk1.box
    
    vagrant init precise64
    vagrant up
    

提交回复
热议问题