Skip to content

Instantly share code, notes, and snippets.

@jingkaihe
Created September 23, 2014 23:17
Show Gist options
  • Save jingkaihe/f49fbeef83189bff6ad5 to your computer and use it in GitHub Desktop.
Save jingkaihe/f49fbeef83189bff6ad5 to your computer and use it in GitHub Desktop.
boot2docker must do.
for i in {49000..49900}; do
VBoxManage modifyvm "boot2docker-vm" --natpf1 "tcp-port$i,tcp,,$i,,$i";
VBoxManage modifyvm "boot2docker-vm" --natpf1 "udp-port$i,udp,,$i,,$i";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment