Skip to content

Commit d58ca97

Browse files
committed
[DOCS] Update the Image.save documentation with a working example. Issue #836
Signed-off-by: Roger Camargo <[email protected]>
1 parent 96c1272 commit d58ca97

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)