summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docker/api/network.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/api/network.py b/docker/api/network.py
index 139c2d1..1841993 100644
--- a/docker/api/network.py
+++ b/docker/api/network.py
@@ -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):