Skip forwarded port if disabled in docker provider

This commit is contained in:
Chris Roberts 2017-03-09 09:23:25 -08:00
parent 334e4f5d9d
commit 6f578590a9
1 changed files with 3 additions and 0 deletions

View File

@ -129,6 +129,9 @@ module VagrantPlugins
# Don't include SSH if we've explicitly asked not to
next if options[:id] == "ssh" && !include_ssh
# Skip port if it is disabled
next if options[:disabled]
# If the guest port is 0, put it in the random group
if options[:guest] == 0
random << options[:host]