Skip to content

Commit

Permalink
Merge pull request #2805 from feliperuhland/fix-low-level-network-exa…
Browse files Browse the repository at this point in the history
…mple

Fix network low-level documentation examples
  • Loading branch information
aiordache authored Oct 7, 2021
2 parents 7779b84 + 50a0ff5 commit 3c5f0d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/api/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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):
Expand Down

0 comments on commit 3c5f0d0

Please sign in to comment.