mirror of https://github.com/docker/docker-py.git
adding response container_id to make the example clearer.
Without this, c.start refers to container_id, which has not been introduced before
This commit is contained in:
parent
6fac5fd47c
commit
144f11d4e0
|
@ -3,7 +3,7 @@ Port bindings is done in two parts. Firstly, by providing a list of ports to
|
||||||
open inside the container in the `Client().create_container()` method.
|
open inside the container in the `Client().create_container()` method.
|
||||||
|
|
||||||
```python
|
```python
|
||||||
c.create_container('busybox', 'ls', ports=[1111, 2222])
|
container_id = c.create_container('busybox', 'ls', ports=[1111, 2222])
|
||||||
```
|
```
|
||||||
|
|
||||||
Bindings are then declared in the `Client.start` method.
|
Bindings are then declared in the `Client.start` method.
|
||||||
|
|
Loading…
Reference in New Issue