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:
parent
d44b97482f
commit
e76d0e78d2
|
@ -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
|
correct any collisions. During a `vagrant up` or `vagrant reload`, Vagrant
|
||||||
will output information about any collisions detections and auto corrections
|
will output information about any collisions detections and auto corrections
|
||||||
made, so you can take notice and act accordingly.
|
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
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue