Skip to content

Commit 2ea22b0

Browse files
rgulewichthaJeztah
andauthored
Update cli/command/container/opts.go
Add API annotation to `cgroupns` flag Co-Authored-By: Sebastiaan van Stijn <thaJeztah@users.noreply.github.com>
1 parent b6efc48 commit 2ea22b0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cli/command/container/opts.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ func addFlags(flags *pflag.FlagSet) *containerOptions {
200200
flags.Var(&copts.securityOpt, "security-opt", "Security Options")
201201
flags.StringVar(&copts.usernsMode, "userns", "", "User namespace to use")
202202
flags.StringVar(&copts.cgroupnsMode, "cgroupns", "", "Cgroup namespace to use")
203+
flags.SetAnnotation("cgroupns", "version", []string{"1.41"})
203204

204205
// Network and port publishing flag
205206
flags.Var(&copts.extraHosts, "add-host", "Add a custom host-to-IP mapping (host:ip)")

0 commit comments

Comments
 (0)