Skip to content

Commit b6d0dc1

Browse files
committed
Fixed DEFAULT API VERSION in docstrings.
Signed-off-by: Felipe Ruhland <[email protected]>
1 parent 8cfd4cb commit b6d0dc1

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

docker/api/client.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,21 +63,21 @@ class APIClient(
6363
>>> import docker
6464
>>> client = docker.APIClient(base_url='unix://var/run/docker.sock')
6565
>>> client.version()
66-
{u'ApiVersion': u'1.24',
66+
{u'ApiVersion': u'1.33',
6767
u'Arch': u'amd64',
68-
u'BuildTime': u'2016-09-27T23:38:15.810178467+00:00',
69-
u'Experimental': True,
70-
u'GitCommit': u'45bed2c',
71-
u'GoVersion': u'go1.6.3',
72-
u'KernelVersion': u'4.4.22-moby',
68+
u'BuildTime': u'2017-11-19T18:46:37.000000000+00:00',
69+
u'GitCommit': u'f4ffd2511c',
70+
u'GoVersion': u'go1.9.2',
71+
u'KernelVersion': u'4.14.3-1-ARCH',
72+
u'MinAPIVersion': u'1.12',
7373
u'Os': u'linux',
74-
u'Version': u'1.12.2-rc1'}
74+
u'Version': u'17.10.0-ce'}
7575
7676
Args:
7777
base_url (str): URL to the Docker server. For example,
7878
``unix:///var/run/docker.sock`` or ``tcp://127.0.0.1:1234``.
7979
version (str): The version of the API to use. Set to ``auto`` to
80-
automatically detect the server's version. Default: ``1.26``
80+
automatically detect the server's version. Default: ``1.30``
8181
timeout (int): Default timeout for API calls, in seconds.
8282
tls (bool or :py:class:`~docker.tls.TLSConfig`): Enable TLS. Pass
8383
``True`` to enable it with default options, or pass a

docker/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class DockerClient(object):
2626
base_url (str): URL to the Docker server. For example,
2727
``unix:///var/run/docker.sock`` or ``tcp://127.0.0.1:1234``.
2828
version (str): The version of the API to use. Set to ``auto`` to
29-
automatically detect the server's version. Default: ``1.26``
29+
automatically detect the server's version. Default: ``1.30``
3030
timeout (int): Default timeout for API calls, in seconds.
3131
tls (bool or :py:class:`~docker.tls.TLSConfig`): Enable TLS. Pass
3232
``True`` to enable it with default options, or pass a
@@ -60,7 +60,7 @@ def from_env(cls, **kwargs):
6060
6161
Args:
6262
version (str): The version of the API to use. Set to ``auto`` to
63-
automatically detect the server's version. Default: ``1.26``
63+
automatically detect the server's version. Default: ``1.30``
6464
timeout (int): Default timeout for API calls, in seconds.
6565
ssl_version (int): A valid `SSL version`_.
6666
assert_hostname (bool): Verify the hostname of the server.

0 commit comments

Comments
 (0)