summaryrefslogtreecommitdiff
path: root/cmd/podman/images/build.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-01-25 16:41:42 -0500
committerDaniel J Walsh <dwalsh@redhat.com>2021-01-25 17:54:43 -0500
commit97f5e9458c8d618989e5ff386620bfee35942df3 (patch)
treec0869382db971ef17d8942b7dee5f51aee754dca /cmd/podman/images/build.go
parent6ba8819d336ed3514b57c5818123ddfac80555ef (diff)
downloadpodman-97f5e9458c8d618989e5ff386620bfee35942df3.tar.gz
podman-97f5e9458c8d618989e5ff386620bfee35942df3.tar.bz2
podman-97f5e9458c8d618989e5ff386620bfee35942df3.zip
Pass DefaultMountsFile to podman build
The --default-mounts-file path was not being handled in podman build. This will enable it to use for testing. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman/images/build.go')
-rw-r--r--cmd/podman/images/build.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/podman/images/build.go b/cmd/podman/images/build.go
index 1029e03d1..4219e325b 100644
--- a/cmd/podman/images/build.go
+++ b/cmd/podman/images/build.go
@@ -423,10 +423,10 @@ func buildFlagsWrapperToOptions(c *cobra.Command, contextDir string, flags *buil
Ulimit: flags.Ulimit,
Volumes: flags.Volumes,
},
- Compression: compression,
- ConfigureNetwork: networkPolicy,
- ContextDirectory: contextDir,
- // DefaultMountsFilePath: FIXME: this requires global flags to be working!
+ Compression: compression,
+ ConfigureNetwork: networkPolicy,
+ ContextDirectory: contextDir,
+ DefaultMountsFilePath: containerConfig.Containers.DefaultMountsFile,
Devices: flags.Devices,
DropCapabilities: flags.CapDrop,
Err: stderr,