How to change Vagrant 'default' machine name?

前端 未结 7 619
有刺的猬
有刺的猬 2020-11-28 00:29

Where does the name \'default\' come from when launching a vagrant box?

$ vagrant up
Bringing machine \'default\' up with \'virtualbox\' provider...
<         


        
7条回答
  •  离开以前
    2020-11-28 00:58

    If you want to change anything else instead of 'default', then just add these additional lines to your Vagrantfile:

    Change the basebox name, when using "vagrant status"

     config.vm.define "tendo" do |tendo|
      end
    

    Where "tendo" will be the name that will appear instead of default

提交回复
热议问题