Created
July 16, 2014 05:49
-
-
Save jollyjoester/d11432ca11eb77a34dd2 to your computer and use it in GitHub Desktop.
Connect docker from MacOSX
This file contains hidden or 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
| #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 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, VBoxManage.