Skip to content

Commit 0b97e8a

Browse files
authored
Merge pull request #4330 from dvdksn/docs/ssh-sock-path
docs: added example for specifying socket path with -H
2 parents b3a1180 + e4ceed4 commit 0b97e8a

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • docs/reference/commandline

docs/reference/commandline/cli.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,13 @@ to the `/var/run/docker.sock` Unix socket on the SSH host.
428428
$ docker -H ssh://user@192.168.64.5 ps
429429
```
430430

431+
You can optionally specify the location of the socket by appending a path
432+
component to the end of the SSH address.
433+
434+
```console
435+
$ docker -H ssh://user@192.168.64.5/var/run/docker.sock ps
436+
```
437+
431438
### Display help text
432439

433440
To list the help on any command just execute the command, followed by the

0 commit comments

Comments
 (0)