From 50a0ff596fde9cea5acb5250a07de16ca584d0a1 Mon Sep 17 00:00:00 2001 From: Felipe Ruhland Date: Tue, 6 Apr 2021 20:27:07 +0200 Subject: [PATCH] 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 --- docker/api/network.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/api/network.py b/docker/api/network.py index 139c2d1a8..18419932f 100644 --- a/docker/api/network.py +++ b/docker/api/network.py @@ -75,7 +75,7 @@ def create_network(self, name, driver=None, options=None, ipam=None, 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 @@ def create_network(self, name, driver=None, options=None, ipam=None, >>> 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):