diff options
author | Karthik Elango <kelango@redhat.com> | 2022-07-20 16:23:13 -0400 |
---|---|---|
committer | Karthik Elango <kelango@redhat.com> | 2022-08-04 14:55:03 -0400 |
commit | cc8e4d5fec571d6bd69d3d2f8189e945b621ba7b (patch) | |
tree | b47a7e62c202905d9ba2d592d0cfcf84152691ef /pkg/api/handlers/libpod/images.go | |
parent | b0ef621ebf196fd61189aebff3161927f0049c52 (diff) | |
download | podman-cc8e4d5fec571d6bd69d3d2f8189e945b621ba7b.tar.gz podman-cc8e4d5fec571d6bd69d3d2f8189e945b621ba7b.tar.bz2 podman-cc8e4d5fec571d6bd69d3d2f8189e945b621ba7b.zip |
remove image podman no prune
Signed-off-by: Karthik Elango <kelango@redhat.com>
Diffstat (limited to 'pkg/api/handlers/libpod/images.go')
-rw-r--r-- | pkg/api/handlers/libpod/images.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/api/handlers/libpod/images.go b/pkg/api/handlers/libpod/images.go index 67943ecf1..bccaad932 100644 --- a/pkg/api/handlers/libpod/images.go +++ b/pkg/api/handlers/libpod/images.go @@ -547,6 +547,7 @@ func ImagesBatchRemove(w http.ResponseWriter, r *http.Request) { Ignore bool `schema:"ignore"` LookupManifest bool `schema:"lookupManifest"` Images []string `schema:"images"` + NoPrune bool `schema:"noprune"` }{} if err := decoder.Decode(&query, r.URL.Query()); err != nil { @@ -554,7 +555,7 @@ func ImagesBatchRemove(w http.ResponseWriter, r *http.Request) { return } - opts := entities.ImageRemoveOptions{All: query.All, Force: query.Force, Ignore: query.Ignore, LookupManifest: query.LookupManifest} + opts := entities.ImageRemoveOptions{All: query.All, Force: query.Force, Ignore: query.Ignore, LookupManifest: query.LookupManifest, NoPrune: query.NoPrune} imageEngine := abi.ImageEngine{Libpod: runtime} rmReport, rmErrors := imageEngine.Remove(r.Context(), query.Images, opts) strErrs := errorhandling.ErrorsToStrings(rmErrors) |