namespaces: combine Process.Env and Container.Env
Signed-off-by: Andrey Vagin <avagin@openvz.org>
This commit is contained in:
parent
86653c66a3
commit
c912207636
namespaces
|
@ -55,7 +55,7 @@ func Exec(args []string, env []string, command *exec.Cmd, container *configs.Con
|
|||
}
|
||||
|
||||
process := processArgs{
|
||||
Env: env,
|
||||
Env: append(env[0:], container.Env...),
|
||||
Args: args,
|
||||
}
|
||||
if err := encoder.Encode(process); err != nil {
|
||||
|
|
Loading…
Reference in New Issue