Skip to content

Latest commit

 

History

History
25 lines (14 loc) · 701 Bytes

README.md

File metadata and controls

25 lines (14 loc) · 701 Bytes

Docker port forwarder

Automatically forwards all remote ports from a docker-machine to the localhost. Very useful on e.g. OS X where the docker instance can't be run locally.

Docker port forwarder will forward any port on the docker instance so that you can utilize the docker services as if they where running on your local machine.

Getting started

Export docker-machine variables to shell (replace default with the name of your docker-machine)

$ eval "$(docker-machine env default)"

Install docker-pf (you need nodejs):

$ npm install -g docker-pf

Start it

$ docker-pf

Or if you want to run it in background

$ docker-pf 0<&- &>/dev/null &