Created
June 17, 2014 09:50
-
-
Save johnsyweb/26ce4ae716222ae6ae15 to your computer and use it in GitHub Desktop.
Port forwarding for boot2docker, based on https://github.com/cameron/docker/commit/49b928c0b05852b58881ce8ebdb164db92befd3a
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
#!/bin/bash | |
boot2docker down | |
for i in {49000..49900}; do | |
for protocol in 'tcp' 'udp'; do | |
VBoxManage modifyvm "boot2docker-vm" --natpf1 "${protocol}-port${i},${protocol},,${i},,${i}" | |
done | |
done | |
boot2docker up | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment