Created
April 10, 2014 12:24
-
-
Save tanmally/10376201 to your computer and use it in GitHub Desktop.
Virtualbox docker port mapping for windows batch file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FOR /L %%A IN (49152,1,65535) DO ( | |
VBoxManage modifyvm "$vm_name" --natpf1 "tcp-port-%%A,tcp,,%%A,,%%A"; | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Turn off your virtual box vm before running the command , it takes a while to complete (10 odd mins)