How to debug “Vagrant cannot forward the specified ports on this VM” message

后端 未结 13 2682
时光取名叫无心
时光取名叫无心 2020-12-25 10:33

I\'m trying to start a Vagrant instance and getting the following message:

Vagrant cannot forward the specified ports on this VM, since they
would collide wi         


        
13条回答
  •  爱一瞬间的悲伤
    2020-12-25 10:41

    Vagrant.configure("2") do |config|

    config.vm.network "forwarded_port", guest: 80, host: 8080,

    auto_correct: true
    

    end

    The final :auto_correct parameter set to true tells Vagrant to auto correct any collisions. During a vagrant up or vagrant reload, Vagrant will output information about any collisions detections and auto corrections made, so you can take notice and act accordingly.

    https://www.vagrantup.com/docs/networking/forwarded_ports.html

提交回复
热议问题