diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-03-21 04:59:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-21 04:59:01 -0700 |
commit | 97b966b851dda998e44c0722f10655bd4b911434 (patch) | |
tree | 2c9ba59938189c87e2850eb5e2957c93862aa27f | |
parent | 78244aa6d4725bbf668c0d98896ad726e5bc52e4 (diff) | |
parent | a6af746a9493f210f05eff75ad6da484d8e13aa0 (diff) | |
download | podman-97b966b851dda998e44c0722f10655bd4b911434.tar.gz podman-97b966b851dda998e44c0722f10655bd4b911434.tar.bz2 podman-97b966b851dda998e44c0722f10655bd4b911434.zip |
Merge pull request #2720 from QiWang19/save
fix Bug 1688041-podman image save removes existing image
-rw-r--r-- | libpod/image/image.go | 3 |
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) |