mirror of
https://github.com/opencontainers/runc.git
synced 2025-10-08 00:40:40 +08:00
Move environment configuration to Process
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
@@ -13,6 +13,7 @@ import (
|
||||
// inside an existing container.
|
||||
type linuxSetnsInit struct {
|
||||
args []string
|
||||
env []string
|
||||
config *configs.Config
|
||||
}
|
||||
|
||||
@@ -31,5 +32,5 @@ func (l *linuxSetnsInit) Init() error {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return system.Execv(l.args[0], l.args[0:], l.config.Env)
|
||||
return system.Execv(l.args[0], l.args[0:], l.env)
|
||||
}
|
||||
|
Reference in New Issue
Block a user