diff options
author | Joffrey F <joffrey@docker.com> | 2016-11-23 15:15:58 -0800 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2016-11-28 15:28:04 -0800 |
commit | f5ac10c469fca252e69ae780749f4ec6fe369789 (patch) | |
tree | edd59b15fb03c7ce68187fbd8a41dd00f0d19537 /docs/tls.rst | |
parent | c66c7f8b0a8ca216e21c9fe1903eb79f4406a93e (diff) | |
download | docker-py-docker_client.tar.gz |
Rename Client -> DockerClientdocker_client
Replace references to old Client with APIClient
Moved contents of services.md to appropriate locations
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'docs/tls.rst')
-rw-r--r-- | docs/tls.rst | 6 |
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 ...``. |