summaryrefslogtreecommitdiff
path: root/cmd/podman/images/build.go
diff options
context:
space:
mode:
authorQi Wang <qiwan@redhat.com>2020-08-21 13:56:50 -0400
committerQi Wang <qiwan@redhat.com>2020-09-04 15:04:36 -0400
commit6b0864434ad2780160c06ba607c76b0325b60175 (patch)
tree6d352ca8204e5f7c5e2ff1266248ff35d1cb9a19 /cmd/podman/images/build.go
parentfa487a65220951e84779f200f48780666b4b9209 (diff)
downloadpodman-6b0864434ad2780160c06ba607c76b0325b60175.tar.gz
podman-6b0864434ad2780160c06ba607c76b0325b60175.tar.bz2
podman-6b0864434ad2780160c06ba607c76b0325b60175.zip
Add global options --runtime-flags
Add global options --runtime-flags for setting options to container runtime. Signed-off-by: Qi Wang <qiwan@redhat.com>
Diffstat (limited to 'cmd/podman/images/build.go')
-rw-r--r--cmd/podman/images/build.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/podman/images/build.go b/cmd/podman/images/build.go
index 400f960cc..6b8b5cedf 100644
--- a/cmd/podman/images/build.go
+++ b/cmd/podman/images/build.go
@@ -382,6 +382,9 @@ func buildFlagsWrapperToOptions(c *cobra.Command, contextDir string, flags *buil
}
containerConfig := registry.PodmanConfig()
+ for _, arg := range containerConfig.RuntimeFlags {
+ runtimeFlags = append(runtimeFlags, "--"+arg)
+ }
if containerConfig.Engine.CgroupManager == config.SystemdCgroupsManager {
runtimeFlags = append(runtimeFlags, "--systemd-cgroup")
}