oci: do not append conmon env to container process
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
99b3e82faf
commit
4cde515268
1 changed files with 1 additions and 2 deletions
|
@ -415,7 +415,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,
|
||||||
|
@ -440,7 +440,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…
Add table
Add a link
Reference in a new issue