mirror of https://github.com/docker/docker-py.git
Merge pull request #2805 from feliperuhland/fix-low-level-network-example
Fix network low-level documentation examples
This commit is contained in:
commit
3c5f0d0ee1
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue