Skip to content

Instantly share code, notes, and snippets.

@jollyjoester
Created July 16, 2014 05:49
Show Gist options
  • Save jollyjoester/d11432ca11eb77a34dd2 to your computer and use it in GitHub Desktop.
Save jollyjoester/d11432ca11eb77a34dd2 to your computer and use it in GitHub Desktop.
Connect docker from MacOSX
#DockerVMにポートフォワーディング(DockerVMのport:80にlocalhost:8080でアクセス)
VBoxManage controlvm "boot2docker-vm" natpf1 "hogehoge,tcp,127.0.0.1,8080,,80"
#ポートフォワーディング確認
VBoxManage showvminfo boot2docker-vm | grep '^NIC'
#ポートフォワーディング削除
VBoxManage controlvm "boot2docker-vm" natpf1 delete hogehoge
@jollyjoester
Copy link
Author

Hello, VBoxManage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment