From 6b0864434ad2780160c06ba607c76b0325b60175 Mon Sep 17 00:00:00 2001 From: Qi Wang Date: Fri, 21 Aug 2020 13:56:50 -0400 Subject: Add global options --runtime-flags Add global options --runtime-flags for setting options to container runtime. Signed-off-by: Qi Wang --- cmd/podman/images/build.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cmd/podman/images') 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") } -- cgit v1.2.3-54-g00ecf