From b22fbd3734b52190cf2108471c2c35710ca214e4 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Sat, 6 Jun 2015 21:11:39 +0100 Subject: [PATCH] expand proxy setup documentation --- site/proxy.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/site/proxy.md b/site/proxy.md index f45d1985..f2947df0 100644 --- a/site/proxy.md +++ b/site/proxy.md @@ -40,10 +40,16 @@ By default, the proxy will connect to docker at `unix:///var/run/docker.sock`, and listen on port 12375. However, we can adjust the connection to docker via the `-H` argument. All docker commands can be run via the proxy, so it is safe to globally adjust -your `DOCKER_HOST`. +your `DOCKER_HOST`, e.g. - host1$ export DOCKER_HOST=tcp://host1:12375 + host1$ export DOCKER_HOST=localhost:12375 host1$ docker ps + ... + +If you are working with a remote docker daemon, then `localhost` in +the above needs to be replaced with the docker daemon host, and any +firewalls inbetween need to be configured to permit access to +port 12375. ## Usage