@@ -30,6 +30,7 @@ type Config struct {
3030 EnableSelinuxSupport bool `json:"selinux-enabled,omitempty"`
3131 RemappedRoot string `json:"userns-remap,omitempty"`
3232 Ulimits map [string ]* units.Ulimit `json:"default-ulimits,omitempty"`
33+ PidsLimit int64 `json:"default-pids-limit"`
3334 CPURealtimePeriod int64 `json:"cpu-rt-period,omitempty"`
3435 CPURealtimeRuntime int64 `json:"cpu-rt-runtime,omitempty"`
3536 OOMScoreAdjust int `json:"oom-score-adjust,omitempty"`
@@ -92,6 +93,7 @@ func (config *Config) InstallFlags(flags *pflag.FlagSet) {
9293 flags .StringVar (& config .InitPath , "init-path" , "" , "Path to the docker-init binary" )
9394 flags .Int64Var (& config .CPURealtimePeriod , "cpu-rt-period" , 0 , "Limit the CPU real-time period in microseconds" )
9495 flags .Int64Var (& config .CPURealtimeRuntime , "cpu-rt-runtime" , 0 , "Limit the CPU real-time runtime in microseconds" )
96+ flags .Int64Var (& config .PidsLimit , "default-pids-limit" , 4096 , "Limit the number of processes each container is restricted to" )
9597 flags .StringVar (& config .SeccompProfile , "seccomp-profile" , "" , "Path to seccomp profile" )
9698 flags .BoolVar (& config .SigCheck , "signature-verification" , true , "Check image's signatures on pull" )
9799 flags .BoolVar (& config .EnableSecrets , "enable-secrets" , true , "Enable Secrets" )
0 commit comments