Skip to content

Fix network low-level documentation examples #2805

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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