From 144f11d4e03cb1867031f5176dae302ba2abaafa Mon Sep 17 00:00:00 2001 From: kenden Date: Mon, 9 Mar 2015 15:43:13 +0100 Subject: [PATCH] adding response container_id to make the example clearer. Without this, c.start refers to container_id, which has not been introduced before --- docs/port-bindings.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/port-bindings.md b/docs/port-bindings.md index c8c2b1a1..90523f24 100644 --- a/docs/port-bindings.md +++ b/docs/port-bindings.md @@ -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. ```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.