Skip to content

Commit 650aad3

Browse files
authored
Merge pull request #2851 from huogerac/issue836_better_docs
Update the Image.save documentation with a working example. Issue #836
2 parents 96c1272 + d58ca97 commit 650aad3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker/models/images.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ def save(self, chunk_size=DEFAULT_DATA_CHUNK_SIZE, named=False):
8484
8585
Example:
8686
87-
>>> image = cli.get_image("busybox:latest")
87+
>>> image = cli.images.get("busybox:latest")
8888
>>> f = open('/tmp/busybox-latest.tar', 'wb')
89-
>>> for chunk in image:
89+
>>> for chunk in image.save():
9090
>>> f.write(chunk)
9191
>>> f.close()
9292
"""

0 commit comments

Comments
 (0)