Fix python code snippet. (Commit containers) (#3267)

This commit is contained in:
Yuji Shimoda 2017-05-20 07:27:13 +09:00 committed by Misty Stanley-Jones
parent 58434c1e4a
commit 4184049fbe
1 changed files with 1 additions and 1 deletions

View File

@ -622,7 +622,7 @@ Commit containers to create images from their contents:
```python
import docker
client = docker.from_env()
container = client.run("alpine", ["touch", "/helloworld"], detached=True)
container = client.containers.run("alpine", ["touch", "/helloworld"], detach=True)
container.wait()
image = container.commit("helloworld")
print image.id