Created
September 8, 2015 13:05
-
-
Save dcb9/910aff5c0fdfe79da88d to your computer and use it in GitHub Desktop.
Mac 映射HostOnly 虚拟机到局域网
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
sudo ssh -L `ifconfig en0 | grep 'inet 192.168' | awk '{print $2}'`:80:`docker-machine ip playground`:80 -N `whoami`@`ifconfig en0 | grep 'inet 192.168' | awk '{print $2}'` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment