Skip to content

Commit 144f11d

Browse files
committed
adding response container_id to make the example clearer.
Without this, c.start refers to container_id, which has not been introduced before
1 parent 6fac5fd commit 144f11d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/port-bindings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Port bindings is done in two parts. Firstly, by providing a list of ports to
33
open inside the container in the `Client().create_container()` method.
44

55
```python
6-
c.create_container('busybox', 'ls', ports=[1111, 2222])
6+
container_id = c.create_container('busybox', 'ls', ports=[1111, 2222])
77
```
88

99
Bindings are then declared in the `Client.start` method.

0 commit comments

Comments
 (0)