Merge pull request #10292 from rhatdan/buildah

Fix podman-remote build --rm=false ...
This commit is contained in:
OpenShift Merge Robot 2021-05-10 10:44:39 -04:00 committed by GitHub
commit 446e5b3006
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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)