diff options
author | Andrej Shadura <andrew.shadura@collabora.co.uk> | 2021-10-12 10:20:01 +0200 |
---|---|---|
committer | Andrej Shadura <andrew.shadura@collabora.co.uk> | 2021-10-12 10:20:01 +0200 |
commit | 63218964ca77dda86cea821b51593eb72ae73b21 (patch) | |
tree | 1c7436eade6dcd8b26cc914a12c606a24b2c6b4d /docker/api/network.py | |
parent | 1fa8b235e5090c90e3cebc9d62b5d44b2ff5d71a (diff) |
New upstream version 5.0.3
Diffstat (limited to 'docker/api/network.py')
-rw-r--r-- | docker/api/network.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docker/api/network.py b/docker/api/network.py index 139c2d1..e95c5fc 100644 --- a/docker/api/network.py +++ b/docker/api/network.py @@ -4,7 +4,7 @@ from ..utils import version_lt from .. import utils -class NetworkApiMixin(object): +class NetworkApiMixin: def networks(self, names=None, ids=None, filters=None): """ List networks. Similar to the ``docker network ls`` command. @@ -75,7 +75,7 @@ class NetworkApiMixin(object): Example: A network using the bridge driver: - >>> client.create_network("network1", driver="bridge") + >>> client.api.create_network("network1", driver="bridge") You can also create more advanced networks with custom IPAM configurations. For example, setting the subnet to @@ -90,7 +90,7 @@ class NetworkApiMixin(object): >>> ipam_config = docker.types.IPAMConfig( pool_configs=[ipam_pool] ) - >>> docker_client.create_network("network1", driver="bridge", + >>> client.api.create_network("network1", driver="bridge", ipam=ipam_config) """ if options is not None and not isinstance(options, dict): |