diff options
author | Felipe Ruhland <felipe.ruhland@gmail.com> | 2021-04-06 20:27:07 +0200 |
---|---|---|
committer | Felipe Ruhland <felipe.ruhland@gmail.com> | 2021-04-06 20:52:49 +0200 |
commit | 50a0ff596fde9cea5acb5250a07de16ca584d0a1 (patch) | |
tree | 68a19e35298e5e4a90646e71d435e2cfe9036bc0 /docker | |
parent | 96c12726fdb9b24e985b4de74d5c82145ccd8185 (diff) | |
download | docker-py-50a0ff596fde9cea5acb5250a07de16ca584d0a1.tar.gz |
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>
Diffstat (limited to 'docker')
-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 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): |