diff --git a/drivers/shared/executor/executor_linux.go b/drivers/shared/executor/executor_linux.go index 082619549..b007da139 100644 --- a/drivers/shared/executor/executor_linux.go +++ b/drivers/shared/executor/executor_linux.go @@ -120,6 +120,9 @@ func (l *LibcontainerExecutor) Launch(command *ExecCommand) (*ProcessState, erro factory, err := libcontainer.New( path.Join(command.TaskDir, "../alloc/container"), libcontainer.Cgroupfs, + // note that os.Args[0] refers to the executor shim typically + // and first args arguments is ignored now due + // until https://github.com/opencontainers/runc/pull/1888 is merged libcontainer.InitArgs(os.Args[0], "libcontainer-shim"), ) if err != nil {