diff --git a/oci/oci.go b/oci/oci.go index 6a7ceefd..e9ca02ae 100644 --- a/oci/oci.go +++ b/oci/oci.go @@ -423,7 +423,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, @@ -448,7 +448,6 @@ func (r *Runtime) ExecSync(c *Container, command []string, timeout int64) (resp args = append(args, "--socket-dir-path", ContainerAttachSocketDir) pspec := c.Spec().Process - pspec.Env = append(pspec.Env, r.conmonEnv...) pspec.Args = command processJSON, err := json.Marshal(pspec) if err != nil {