From b789391eb56207f20d00d20c76d3b976eb97fa2f Mon Sep 17 00:00:00 2001 From: Aaron Schlesinger Date: Wed, 16 Mar 2016 13:25:05 -0700 Subject: [PATCH] feat(rootfs/deploy.py): remove image after it's pushed Fixes https://github.com/deis/dockerbuilder/issues/29 fix(rootfs/deploy.py): use named params fix(deploy.py): replace remote_image (typo) with remove_image fix(deploy.py): fix another typo in noprune --- rootfs/deploy.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rootfs/deploy.py b/rootfs/deploy.py index 403dcbf..056773e 100755 --- a/rootfs/deploy.py +++ b/rootfs/deploy.py @@ -103,3 +103,6 @@ def download_file(tar_path): print("pushing to registry") stream = client.push(registry+'/'+imageName, tag=imageTag, stream=True, insecure_registry=True) log_output(stream, False) +print("deleting image") +stream = client.remove_image(image=registry+'/'+imageName, force=True, noprune=False) +log_output(stream, False)