oci: do not append conmon env to container process
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
3a36f553a4
commit
e4470612a2
1 changed files with 1 additions and 2 deletions
|
@ -412,7 +412,7 @@ func (r *Runtime) ExecSync(c *Container, command []string, timeout int64) (resp
|
|||
os.RemoveAll(logPath)
|
||||
}()
|
||||
|
||||
f, err := ioutil.TempFile("", "exec-process")
|
||||
f, err := ioutil.TempFile("", "exec-sync-process")
|
||||
if err != nil {
|
||||
return nil, ExecSyncError{
|
||||
ExitCode: -1,
|
||||
|
@ -436,7 +436,6 @@ func (r *Runtime) ExecSync(c *Container, command []string, timeout int64) (resp
|
|||
args = append(args, "-l", logPath)
|
||||
|
||||
pspec := c.Spec().Process
|
||||
pspec.Env = append(pspec.Env, r.conmonEnv...)
|
||||
pspec.Args = command
|
||||
processJSON, err := json.Marshal(pspec)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue