We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 74719bd + 0194529 commit 14606ebCopy full SHA for 14606eb
1 file changed
runc.go
@@ -66,6 +66,7 @@ type Runc struct {
66
Setpgid bool
67
Criu string
68
SystemdCgroup bool
69
+ Rootless *bool // nil stands for "auto"
70
}
71
72
// List returns all containers created inside the provided runc root directory
@@ -655,6 +656,10 @@ func (r *Runc) args() (out []string) {
655
656
if r.SystemdCgroup {
657
out = append(out, "--systemd-cgroup")
658
659
+ if r.Rootless != nil {
660
+ // nil stands for "auto" (differs from explicit "false")
661
+ out = append(out, "--rootless="+strconv.FormatBool(*r.Rootless))
662
+ }
663
return out
664
665
0 commit comments