Skip to content

Instantly share code, notes, and snippets.

@vallettea
Created October 14, 2015 10:13
Show Gist options
  • Save vallettea/cdbf8b94e0785e0206f5 to your computer and use it in GitHub Desktop.
Save vallettea/cdbf8b94e0785e0206f5 to your computer and use it in GitHub Desktop.
For osx user that want to access their docker hosted services from other devices

Start by turning off your dicer serv:

docker-machine stop

then to bind port 3500 inside docker machine to 3500 on your computer, use

VBoxManage modifyvm default --natpf1 "tcp-port3500,tcp,,3500,,3500";

restart

docker-machine start

You can now access locally your service on http://localhost:3500 and if you want to display the service on another device of the same network, get your ip address with ifconfig and got to http://yourip:3500

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