diff options
author | Mathieu Champlon <mathieu.champlon@docker.com> | 2021-06-29 08:53:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-29 08:53:34 +0200 |
commit | 650aad3a5fb84059b392ad450f760ed08143ae3f (patch) | |
tree | 046faa5766b116f47d281ec39512fa5492816382 | |
parent | 96c12726fdb9b24e985b4de74d5c82145ccd8185 (diff) | |
parent | d58ca9720725219fd25a4145b8b5adbe1ed2ebc5 (diff) | |
download | docker-py-650aad3a5fb84059b392ad450f760ed08143ae3f.tar.gz |
Merge pull request #2851 from huogerac/issue836_better_docs
Update the Image.save documentation with a working example. Issue #836
-rw-r--r-- | docker/models/images.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/models/images.py b/docker/models/images.py index e635588..28cfc93 100644 --- a/docker/models/images.py +++ b/docker/models/images.py @@ -84,9 +84,9 @@ class Image(Model): Example: - >>> image = cli.get_image("busybox:latest") + >>> image = cli.images.get("busybox:latest") >>> f = open('/tmp/busybox-latest.tar', 'wb') - >>> for chunk in image: + >>> for chunk in image.save(): >>> f.write(chunk) >>> f.close() """ |