diff options
author | Anca Iordache <aiordache@users.noreply.github.com> | 2021-10-08 00:03:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-08 00:03:11 +0200 |
commit | 3c5f0d0ee12c486dee1671e2e1ec10e8e6510952 (patch) | |
tree | 68c057738b54f1275f751c1f8d83887cd0c885e4 | |
parent | 7779b84e87bea3bac3a32b3ec1511bc1bfaa44f1 (diff) | |
parent | 50a0ff596fde9cea5acb5250a07de16ca584d0a1 (diff) | |
download | docker-py-3c5f0d0ee12c486dee1671e2e1ec10e8e6510952.tar.gz |
Merge pull request #2805 from feliperuhland/fix-low-level-network-example
Fix network low-level documentation examples
-rw-r--r-- | docker/api/network.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/api/network.py b/docker/api/network.py index 0b76bf3..e95c5fc 100644 --- a/docker/api/network.py +++ b/docker/api/network.py @@ -75,7 +75,7 @@ class NetworkApiMixin: 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: >>> 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): |