From d58ca9720725219fd25a4145b8b5adbe1ed2ebc5 Mon Sep 17 00:00:00 2001 From: Roger Camargo Date: Thu, 3 Jun 2021 09:33:24 -0300 Subject: [PATCH] [DOCS] Update the Image.save documentation with a working example. Issue #836 Signed-off-by: Roger Camargo --- docker/models/images.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/models/images.py b/docker/models/images.py index e6355885..28cfc93c 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() """