aboutsummaryrefslogtreecommitdiff
path: root/libpod/image
diff options
context:
space:
mode:
authorQi Wang <qiwan@redhat.com>2019-03-20 10:06:27 -0400
committerQi Wang <qiwan@redhat.com>2019-03-20 22:37:58 -0400
commita6af746a9493f210f05eff75ad6da484d8e13aa0 (patch)
treedeaaebb3619f6392bced74995e0bbc0065da5703 /libpod/image
parentc230f0c693134830b3df60a8dc37770848a6f5e2 (diff)
downloadpodman-a6af746a9493f210f05eff75ad6da484d8e13aa0.tar.gz
podman-a6af746a9493f210f05eff75ad6da484d8e13aa0.tar.bz2
podman-a6af746a9493f210f05eff75ad6da484d8e13aa0.zip
fix Bug 1688041-podman image save removes existing image
Signed-off-by: Qi Wang <qiwan@redhat.com>
Diffstat (limited to 'libpod/image')
-rw-r--r--libpod/image/image.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/libpod/image/image.go b/libpod/image/image.go
index c5939e055..f79bc3dc2 100644
--- a/libpod/image/image.go
+++ b/libpod/image/image.go
@@ -1152,9 +1152,6 @@ func (i *Image) Save(ctx context.Context, source, format, output string, moreTag
}
}
if err := i.PushImageToReference(ctx, destRef, manifestType, "", "", writer, compress, SigningOptions{}, &DockerRegistryOptions{}, additionaltags); err != nil {
- if err2 := os.Remove(output); err2 != nil {
- logrus.Errorf("error deleting %q: %v", output, err)
- }
return errors.Wrapf(err, "unable to save %q", source)
}
defer i.newImageEvent(events.Save)