Expand on the 1-network limit in create_container

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2016-06-13 17:37:54 -07:00
parent fc4bfde0d6
commit d991db5b45
1 changed files with 5 additions and 2 deletions

View File

@ -40,9 +40,12 @@ docker_client.create_network("network1", driver="bridge", internal=True)
## Container network configuration ## Container network configuration
In order to specify which network(s) a container will be connected to and In order to specify which network a container will be connected to, and
additional configuration, use the `networking_config` parameter in additional configuration, use the `networking_config` parameter in
`Client.create_container` `Client.create_container`. Note that at the time of creation, you can
only connect a container to a single network. Later on, you may create more
connections using `Client.connect_container_to_network`.
```python ```python
networking_config = docker_client.create_networking_config({ networking_config = docker_client.create_networking_config({