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