From cfea1e9ba0637f53e2d1e9cc78f94e98cb0ee35e Mon Sep 17 00:00:00 2001 From: Jim Sander Date: Thu, 4 May 2017 18:18:51 -0500 Subject: [PATCH] Update deploy.md (#2889) Added missing `-i ` parameter to the tunneling paragraph --- docker-for-aws/deploy.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-for-aws/deploy.md b/docker-for-aws/deploy.md index acc1ec9960..fa440e77c8 100644 --- a/docker-for-aws/deploy.md +++ b/docker-for-aws/deploy.md @@ -42,7 +42,7 @@ Once you are logged into the container you can run Docker commands on the swarm: You can also tunnel the Docker socket over SSH to remotely run commands on the cluster (requires [OpenSSH 6.7](https://lwn.net/Articles/609321/) or later): - $ ssh -NL localhost:2374:/var/run/docker.sock docker@ & + $ ssh -i -NL localhost:2374:/var/run/docker.sock docker@ & $ docker -H localhost:2374 info If you don't want to pass `-H` when using the tunnel, you can set the `DOCKER_HOST` environment variable to point to the localhost tunnel opening.