summaryrefslogtreecommitdiff
path: root/docs/tls.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/tls.rst')
-rw-r--r--docs/tls.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/tls.rst b/docs/tls.rst
index 0f318ff..2e2f1ea 100644
--- a/docs/tls.rst
+++ b/docs/tls.rst
@@ -3,7 +3,7 @@ Using TLS
.. py:module:: docker.tls
-Both the main :py:class:`~docker.client.Client` and low-level
+Both the main :py:class:`~docker.client.DockerClient` and low-level
:py:class:`~docker.api.client.APIClient` can connect to the Docker daemon with TLS.
This is all configured automatically for you if you're using :py:func:`~docker.client.from_env`, but if you need some extra control it is possible to configure it manually by using a :py:class:`TLSConfig` object.
@@ -16,7 +16,7 @@ For example, to check the server against a specific CA certificate:
.. code-block:: python
tls_config = docker.tls.TLSConfig(ca_cert='/path/to/ca.pem')
- client = docker.Client(base_url='<https_url>', tls=tls_config)
+ client = docker.DockerClient(base_url='<https_url>', tls=tls_config)
This is the equivalent of ``docker --tlsverify --tlscacert /path/to/ca.pem ...``.
@@ -27,7 +27,7 @@ To authenticate with client certs:
tls_config = docker.tls.TLSConfig(
client_cert=('/path/to/client-cert.pem', '/path/to/client-key.pem')
)
- client = docker.Client(base_url='<https_url>', tls=tls_config)
+ client = docker.DockerClient(base_url='<https_url>', tls=tls_config)
This is the equivalent of ``docker --tls --tlscert /path/to/client-cert.pem --tlskey /path/to/client-key.pem ...``.