From e4ceed468e737340cbacfc75d9ae2dc034aa4c91 Mon Sep 17 00:00:00 2001 From: David Karlsson Date: Fri, 2 Jun 2023 14:39:57 +0200 Subject: [PATCH] docs: added example for specifying socket path with -H Signed-off-by: David Karlsson --- docs/reference/commandline/cli.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/reference/commandline/cli.md b/docs/reference/commandline/cli.md index 4d6265e658..a6de02b576 100644 --- a/docs/reference/commandline/cli.md +++ b/docs/reference/commandline/cli.md @@ -428,6 +428,13 @@ to the `/var/run/docker.sock` Unix socket on the SSH host. $ docker -H ssh://user@192.168.64.5 ps ``` +You can optionally specify the location of the socket by appending a path +component to the end of the SSH address. + +```console +$ docker -H ssh://user@192.168.64.5/var/run/docker.sock ps +``` + ### Display help text To list the help on any command just execute the command, followed by the