How to change Vagrant 'default' machine name?

前端 未结 7 660
有刺的猬
有刺的猬 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 01:08

    I specify the name by defining inside the VagrantFile and also specify the hostname so i enjoy seeing the name of my project while executing Linux commands independently from my device's OS. ✌️

    config.vm.define "abc"
    config.vm.hostname = "abc"
    

提交回复
热议问题