respect context timeout in shim binary call

Signed-off-by: jerryzhuang <zhuangqhc@gmail.com>
This commit is contained in:
jerryzhuang 2021-07-27 22:28:05 +08:00
parent 158901756c
commit 7a10fd4fcc

View File

@ -100,7 +100,7 @@ func Command(ctx context.Context, runtime, containerdAddress, containerdTTRPCAdd
}
}
cmd := exec.Command(cmdPath, args...)
cmd := exec.CommandContext(ctx, cmdPath, args...)
cmd.Dir = path
cmd.Env = append(
os.Environ(),