Missing ssh tunnel option

I've tried to connect with ssh tunnel and i found that the port option is missing.
Added option to doc.
This commit is contained in:
Lorenzo Pizzari 2017-03-08 23:41:39 +01:00 committed by GitHub
parent 9c271e8761
commit 6d6ba4725a
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,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-host> &
$ ssh -p <ssh-port> -NL localhost:2374:/var/run/docker.sock docker@<ssh-host> &
$ 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.