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)