summaryrefslogtreecommitdiff
path: root/docker/client.py
diff options
context:
space:
mode:
authorJoffrey F <f.joffrey@gmail.com>2018-06-18 15:22:42 -0700
committerGitHub <noreply@github.com>2018-06-18 15:22:42 -0700
commitf70545e89a70bf396d5e46732af8df737190cab0 (patch)
tree23a417ac42e3f661d39dbd23ebc7fb601c0250f0 /docker/client.py
parente88751cb9a235f31ec946c199b952b69dcc4cc0b (diff)
parente5f56247e3d6f6f0f325aab507d9845ad2c4c097 (diff)
downloaddocker-py-3.4.0.tar.gz
Merge pull request #2062 from docker/3.4.0-release3.4.0
3.4.0 Release
Diffstat (limited to 'docker/client.py')
-rw-r--r--docker/client.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/docker/client.py b/docker/client.py
index b4364c3..8d4a52b 100644
--- a/docker/client.py
+++ b/docker/client.py
@@ -33,6 +33,8 @@ class DockerClient(object):
:py:class:`~docker.tls.TLSConfig` object to use custom
configuration.
user_agent (str): Set a custom user agent for requests to the server.
+ credstore_env (dict): Override environment variables when calling the
+ credential store process.
"""
def __init__(self, *args, **kwargs):
self.api = APIClient(*args, **kwargs)
@@ -66,6 +68,8 @@ class DockerClient(object):
assert_hostname (bool): Verify the hostname of the server.
environment (dict): The environment to read environment variables
from. Default: the value of ``os.environ``
+ credstore_env (dict): Override environment variables when calling
+ the credential store process.
Example:
@@ -77,8 +81,9 @@ class DockerClient(object):
"""
timeout = kwargs.pop('timeout', DEFAULT_TIMEOUT_SECONDS)
version = kwargs.pop('version', None)
- return cls(timeout=timeout, version=version,
- **kwargs_from_env(**kwargs))
+ return cls(
+ timeout=timeout, version=version, **kwargs_from_env(**kwargs)
+ )
# Resources
@property