WithRuntimePath uses the TaskInfo.RuntimePath field

Signed-off-by: Iceber Gu <wei.cai-nat@daocloud.io>
This commit is contained in:
Iceber Gu
2023-03-06 15:03:58 +08:00
parent 831b9a9ae8
commit 97064b0772
3 changed files with 7 additions and 1 deletions

View File

@@ -139,6 +139,11 @@ type TaskInfo struct {
RootFS []mount.Mount
// Options hold runtime specific settings for task creation
Options interface{}
// RuntimePath is an absolute path that can be used to overwrite path
// to a shim runtime binary.
RuntimePath string
// runtime is the runtime name for the container, and cannot be changed.
runtime string
}