summaryrefslogtreecommitdiff
path: root/cmd/podman/images
diff options
context:
space:
mode:
authorPaul Holzinger <pholzing@redhat.com>2022-01-13 14:28:53 +0100
committerPaul Holzinger <pholzing@redhat.com>2022-01-13 15:01:28 +0100
commit92e7875210d3f6a52b3ef43e8a249022aba5a07c (patch)
treed5f7e1ad060c6fc2b53e9b040c5650e9b3ec3e5e /cmd/podman/images
parentb24063582d425e40f68f8fc2a773cf19546e9f94 (diff)
downloadpodman-92e7875210d3f6a52b3ef43e8a249022aba5a07c.tar.gz
podman-92e7875210d3f6a52b3ef43e8a249022aba5a07c.tar.bz2
podman-92e7875210d3f6a52b3ef43e8a249022aba5a07c.zip
podman build enable --all-platforms and --unsetenv
Make sure we add support for allplatforms and unsetenv to both local and remote podman. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
Diffstat (limited to 'cmd/podman/images')
-rw-r--r--cmd/podman/images/build.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/images/build.go b/cmd/podman/images/build.go
index 751db099f..606c18aae 100644
--- a/cmd/podman/images/build.go
+++ b/cmd/podman/images/build.go
@@ -514,11 +514,10 @@ func buildFlagsWrapperToOptions(c *cobra.Command, contextDir string, flags *buil
opts := buildahDefine.BuildOptions{
AddCapabilities: flags.CapAdd,
AdditionalTags: tags,
+ AllPlatforms: flags.AllPlatforms,
Annotations: flags.Annotation,
Args: args,
BlobDirectory: flags.BlobCache,
- CNIConfigDir: flags.CNIConfigDir,
- CNIPluginPath: flags.CNIPlugInPath,
CommonBuildOpts: commonOpts,
Compression: compression,
ConfigureNetwork: networkPolicy,
@@ -559,6 +558,7 @@ func buildFlagsWrapperToOptions(c *cobra.Command, contextDir string, flags *buil
SystemContext: systemContext,
Target: flags.Target,
TransientMounts: flags.Volumes,
+ UnsetEnvs: flags.UnsetEnvs,
}
if flags.IgnoreFile != "" {