mirror of https://github.com/docker/docker-py.git
Expand on the 1-network limit in create_container
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
fc4bfde0d6
commit
d991db5b45
|
@ -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({
|
||||||
|
|
Loading…
Reference in New Issue