Skip to content

Commit dc16b56

Browse files
committed
Merge pull request #520 from kenden/master
Making examples in doc a bit clearer for volumes and ports_binding
2 parents 6fac5fd + 9bf3efb commit dc16b56

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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.

docs/volumes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Volume declaration is done in two parts. First, you have to provide
44
a list of mountpoints to the `Client().create_container()` method.
55

66
```python
7-
c.create_container('busybox', 'ls', volumes=['/mnt/vol1', '/mnt/vol2'])
7+
container_id = c.create_container('busybox', 'ls', volumes=['/mnt/vol1', '/mnt/vol2'])
88
```
99

1010
Volume mappings are then declared inside the `Client.start` method like this:

0 commit comments

Comments
 (0)