mirror of
https://github.com/containers/podman.git
synced 2025-12-08 06:39:05 +08:00
Add --compat-volumes option to build and farm build
Add the `--compat-volumes option from Buildah v1.37 into Podman in preparation of Podman v5.2 Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
This commit is contained in:
@@ -281,6 +281,12 @@ func Build(ctx context.Context, containerFiles []string, options types.BuildOpti
|
||||
if mem := options.CommonBuildOpts.Memory; mem > 0 {
|
||||
params.Set("memory", strconv.Itoa(int(mem)))
|
||||
}
|
||||
switch options.CompatVolumes {
|
||||
case imageTypes.OptionalBoolTrue:
|
||||
params.Set("compatvolumes", "1")
|
||||
case imageTypes.OptionalBoolFalse:
|
||||
params.Set("compatvolumes", "0")
|
||||
}
|
||||
if options.NoCache {
|
||||
params.Set("nocache", "1")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user