summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-05-10 08:52:50 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2021-05-10 09:16:52 -0400
commit07164c119ad42b984ef5bab46e4507ac15003f71 (patch)
treebd97edb42bf876e5f32fa71abe780c090c89fa67
parent9e0aa474a97b59c8540b5c9316fe98220d713d06 (diff)
downloadpodman-07164c119ad42b984ef5bab46e4507ac15003f71.tar.gz
podman-07164c119ad42b984ef5bab46e4507ac15003f71.tar.bz2
podman-07164c119ad42b984ef5bab46e4507ac15003f71.zip
Fix podman-remote build --rm=false ...
Fixes: https://github.com/containers/podman/issues/9869 [NO TESTS NEEDED] Since the podman-remote buildah tests will test this, and this is clearly correct. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
-rw-r--r--pkg/bindings/images/build.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/bindings/images/build.go b/pkg/bindings/images/build.go
index 6acfcc1c8..f5e7c0c98 100644
--- a/pkg/bindings/images/build.go
+++ b/pkg/bindings/images/build.go
@@ -127,6 +127,8 @@ func Build(ctx context.Context, containerFiles []string, options entities.BuildO
}
if options.RemoveIntermediateCtrs {
params.Set("rm", "1")
+ } else {
+ params.Set("rm", "0")
}
if len(options.From) > 0 {
params.Set("from", options.From)