mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #27640 from thaJeztah/carry-26348-update-remote-api
[carry 26348] Update cURL connection example in remote API reference
This commit is contained in:
commit
064eda192e
1 changed files with 11 additions and 1 deletions
|
@ -33,7 +33,17 @@ later, as these versions have the `--unix-socket` flag available. To
|
|||
run `curl` against the daemon on the default socket, use the
|
||||
following:
|
||||
|
||||
curl --unix-socket /var/run/docker.sock http:/containers/json
|
||||
When using cUrl 7.50 or later:
|
||||
|
||||
```console
|
||||
$ curl --unix-socket /var/run/docker.sock http://localhost/containers/json
|
||||
```
|
||||
|
||||
When using cURL 7.40, `localhost` must be omitted:
|
||||
|
||||
```console
|
||||
$ curl --unix-socket /var/run/docker.sock http://containers/json
|
||||
```
|
||||
|
||||
If you have bound the Docker daemon to a different socket path or TCP
|
||||
port, you would reference that in your cURL rather than the
|
||||
|
|
Loading…
Add table
Reference in a new issue