Files
linuxkit/alpine/packages/proxy
David Scott d5bd7d690a proxy: bind the IP port as well as the vsock port
Previously the proxy would listen only on the vsock port, which is
fine for accessing the port on the host, but if a container also wants
to access the port (e.g. via `--net=host` and using the Moby IP) then
we need to listen on the IP too.

Related to [docker/pinata#2854]

Signed-off-by: David Scott <dave.scott@docker.com>
2016-04-29 13:53:02 +01:00
..
2016-04-04 12:41:02 +01:00
2016-04-04 12:41:02 +01:00

docker-proxy which can set up tunnels into the VM

This is a replacement for the built-in docker-proxy command, which proxies data from external ports to internal container ports.

This program uses the 9P filesystem under /port to extend the port forward from the host running the Moby VM all the way to the container.

docker-proxy -proto tcp -host-ip 0.0.0.0 -host-port 8080 -container-ip 172.17.0.2 -container-port 8080