diff options
Diffstat (limited to 'container/container.go')
| -rw-r--r-- | container/container.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/container/container.go b/container/container.go index 0b6891b9..941b6631 100644 --- a/container/container.go +++ b/container/container.go @@ -71,6 +71,7 @@ type ( Hostname string // Sequential container setup ops. *Ops + // Seccomp system call filter rules. SeccompRules []seccomp.NativeRule // Extra seccomp flags. @@ -79,6 +80,7 @@ type ( SeccompPresets seccomp.FilterPreset // Do not load seccomp program. SeccompDisable bool + // Permission bits of newly created parent directories. // The zero value is interpreted as 0755. ParentPerm os.FileMode @@ -121,7 +123,7 @@ func (p *Container) Start() error { } p.cmd = exec.CommandContext(ctx, MustExecutable()) - p.cmd.Args = []string{"init"} + p.cmd.Args = []string{initName} p.cmd.Stdin, p.cmd.Stdout, p.cmd.Stderr = p.Stdin, p.Stdout, p.Stderr p.cmd.WaitDelay = p.WaitDelay if p.Cancel != nil { |
