summaryrefslogtreecommitdiff
path: root/cmd/podman/common/create.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-04-21 14:27:21 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2020-04-21 16:00:45 -0400
commit9d7b5947b9ff661433c4bedc018f5368830abbe6 (patch)
treea8052869b2da7299b42e10ca6530f7cc88eb5783 /cmd/podman/common/create.go
parentf7fe424e19c6d95da6366be966457640bbcfd2e6 (diff)
downloadpodman-9d7b5947b9ff661433c4bedc018f5368830abbe6.tar.gz
podman-9d7b5947b9ff661433c4bedc018f5368830abbe6.tar.bz2
podman-9d7b5947b9ff661433c4bedc018f5368830abbe6.zip
Fix handling of CGroupsParent and CGroupsMode
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman/common/create.go')
-rw-r--r--cmd/podman/common/create.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/common/create.go b/cmd/podman/common/create.go
index f256d9677..f4c7059d1 100644
--- a/cmd/podman/common/create.go
+++ b/cmd/podman/common/create.go
@@ -55,7 +55,7 @@ func GetCreateFlags(cf *ContainerCLIOpts) *pflag.FlagSet {
"cgroup namespace to use",
)
createFlags.StringVar(
- &cf.CGroups,
+ &cf.CGroupsMode,
"cgroups", containerConfig.Cgroups(),
`control container cgroup configuration ("enabled"|"disabled"|"no-conmon")`,
)