Skip to content
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
17 changes: 17 additions & 0 deletions docs/port-bindings.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,20 @@ container_id = cli.create_container(
})
)
```

If trying to bind several IPs to the same port, you may use the following syntax:
```python
cli.create_host_config(port_bindings={
1111: [
('192.168.0.100', 1234),
('192.168.0.101', 1234)
]
})
```

Similarly for several container ports bound to a single host port:
```python
cli.create_host_config(port_bindings={
1111: [1234, 4567]
})
```