Skip to content

Instantly share code, notes, and snippets.

@chrisabrams
Created March 1, 2014 00:57
Show Gist options
  • Save chrisabrams/9283069 to your computer and use it in GitHub Desktop.
Save chrisabrams/9283069 to your computer and use it in GitHub Desktop.
boot2docker forward port
b2dforwardport() {
VBoxManage modifyvm "boot2docker-vm" --natpf1 "tcp-port$1,tcp,,$1,,$1";
VBoxManage modifyvm "boot2docker-vm" --natpf1 "udp-port$1,udp,,$1,,$1";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment