diff options
Diffstat (limited to 'docker/api/container.py')
-rw-r--r-- | docker/api/container.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/docker/api/container.py b/docker/api/container.py index 83fcd4f..17c0972 100644 --- a/docker/api/container.py +++ b/docker/api/container.py @@ -256,7 +256,9 @@ class ContainerApiMixin: .. code-block:: python - client.api.create_host_config(port_bindings={1111: ('127.0.0.1', 4567)}) + client.api.create_host_config( + port_bindings={1111: ('127.0.0.1', 4567)} + ) Or without host port assignment: @@ -579,10 +581,13 @@ class ContainerApiMixin: Example: - >>> client.api.create_host_config(privileged=True, cap_drop=['MKNOD'], - volumes_from=['nostalgic_newton']) + >>> client.api.create_host_config( + ... privileged=True, + ... cap_drop=['MKNOD'], + ... volumes_from=['nostalgic_newton'], + ... ) {'CapDrop': ['MKNOD'], 'LxcConf': None, 'Privileged': True, - 'VolumesFrom': ['nostalgic_newton'], 'PublishAllPorts': False} + 'VolumesFrom': ['nostalgic_newton'], 'PublishAllPorts': False} """ if not kwargs: |