Skip to content

Commit 50a0ff5

Browse files
committed
Fix network low-level documentation examples
I realize that low-level documentation has outdated examples, so I created issue #2800 to fix that Signed-off-by: Felipe Ruhland <felipe.ruhland@gmail.com>
1 parent 96c1272 commit 50a0ff5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker/api/network.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def create_network(self, name, driver=None, options=None, ipam=None,
7575
Example:
7676
A network using the bridge driver:
7777
78-
>>> client.create_network("network1", driver="bridge")
78+
>>> client.api.create_network("network1", driver="bridge")
7979
8080
You can also create more advanced networks with custom IPAM
8181
configurations. For example, setting the subnet to
@@ -90,7 +90,7 @@ def create_network(self, name, driver=None, options=None, ipam=None,
9090
>>> ipam_config = docker.types.IPAMConfig(
9191
pool_configs=[ipam_pool]
9292
)
93-
>>> docker_client.create_network("network1", driver="bridge",
93+
>>> client.api.create_network("network1", driver="bridge",
9494
ipam=ipam_config)
9595
"""
9696
if options is not None and not isinstance(options, dict):

0 commit comments

Comments
 (0)