Skip to content

Commit d12b5bb

Browse files
authored
Merge pull request #1544 from shin-/1522-default_api_version_docs
Update mentions of the default API version in docs
2 parents 62a4919 + eea1271 commit d12b5bb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docker/api/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class APIClient(
7575
base_url (str): URL to the Docker server. For example,
7676
``unix:///var/run/docker.sock`` or ``tcp://127.0.0.1:1234``.
7777
version (str): The version of the API to use. Set to ``auto`` to
78-
automatically detect the server's version. Default: ``1.24``
78+
automatically detect the server's version. Default: ``1.26``
7979
timeout (int): Default timeout for API calls, in seconds.
8080
tls (bool or :py:class:`~docker.tls.TLSConfig`): Enable TLS. Pass
8181
``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
@@ -24,7 +24,7 @@ class DockerClient(object):
2424
base_url (str): URL to the Docker server. For example,
2525
``unix:///var/run/docker.sock`` or ``tcp://127.0.0.1:1234``.
2626
version (str): The version of the API to use. Set to ``auto`` to
27-
automatically detect the server's version. Default: ``1.24``
27+
automatically detect the server's version. Default: ``1.26``
2828
timeout (int): Default timeout for API calls, in seconds.
2929
tls (bool or :py:class:`~docker.tls.TLSConfig`): Enable TLS. Pass
3030
``True`` to enable it with default options, or pass a
@@ -58,7 +58,7 @@ def from_env(cls, **kwargs):
5858
5959
Args:
6060
version (str): The version of the API to use. Set to ``auto`` to
61-
automatically detect the server's version. Default: ``1.24``
61+
automatically detect the server's version. Default: ``1.26``
6262
timeout (int): Default timeout for API calls, in seconds.
6363
ssl_version (int): A valid `SSL version`_.
6464
assert_hostname (bool): Verify the hostname of the server.

0 commit comments

Comments
 (0)