diff --git a/guest/runtime/hcsv2/uvm.go b/guest/runtime/hcsv2/uvm.go index 32eacfb7aa..c283c0244b 100644 --- a/guest/runtime/hcsv2/uvm.go +++ b/guest/runtime/hcsv2/uvm.go @@ -544,7 +544,7 @@ func (h *Host) ExecProcess(ctx context.Context, containerID string, params prot. } if envToKeep != nil { - params.OCIProcess.Args = envToKeep + params.OCIProcess.Env = envToKeep } pid, err = c.ExecProcess(ctx, params.OCIProcess, conSettings)