Skip to content

Commit 55f4729

Browse files
authored
docs: fix TLS server verify example (#2574)
Leaving out the verify parameter means verification will not be done. Signed-off-by: Ville Skyttä <[email protected]>
1 parent 3ee3a24 commit 55f4729

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tls.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ For example, to check the server against a specific CA certificate:
1515

1616
.. code-block:: python
1717
18-
tls_config = docker.tls.TLSConfig(ca_cert='/path/to/ca.pem')
18+
tls_config = docker.tls.TLSConfig(ca_cert='/path/to/ca.pem', verify=True)
1919
client = docker.DockerClient(base_url='<https_url>', tls=tls_config)
2020
2121
This is the equivalent of ``docker --tlsverify --tlscacert /path/to/ca.pem ...``.

0 commit comments

Comments
 (0)