Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cfea1e9

Browse files
jimsanderjoaofnfernandes
authored andcommitted
Update deploy.md (docker#2889)
Added missing `-i <path-to-ssh-key>` parameter to the tunneling paragraph
1 parent fb8eddd commit cfea1e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-for-aws/deploy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Once you are logged into the container you can run Docker commands on the swarm:
4242

4343
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):
4444

45-
$ ssh -NL localhost:2374:/var/run/docker.sock docker@<ssh-host> &
45+
$ ssh -i <path-to-ssh-key> -NL localhost:2374:/var/run/docker.sock docker@<ssh-host> &
4646
$ docker -H localhost:2374 info
4747

4848
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.

0 commit comments

Comments
 (0)