Add usable_port_range to port forwarding docs (#10090)

* Add usable_port_range to port forwarding docs

* Add usable_port_range to port forwarding docs
This commit is contained in:
Paweł Niedzielski 2018-08-06 19:52:01 +02:00 committed by Brian Cain
parent d44b97482f
commit e76d0e78d2
1 changed files with 9 additions and 0 deletions

View File

@ -111,3 +111,12 @@ 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.
You can define allowed port range assignable by Vagrant when port collision is
detected via [config.vm.usable_port_range](/docs/vagrantfile/machine_settings.html) property.
```ruby
Vagrant.configure("2") do |config|
config.vm.usable_port_range = 8000..8999
end
```