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

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)