summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorjerryzhuang <zhuangqhc@gmail.com>2019-04-09 03:01:44 +0800
committerLantao Liu <taotaotheripper@gmail.com>2019-04-08 12:01:44 -0700
commitb7a2c922c90242a8d303a9b6e7aca406a06364b5 (patch)
treeb2be5387f62334a894319a4b37c03c4ba9e736d2 /pkg
parent50211323bea5aac87f359c8bd39edce16a42d090 (diff)
fix: apply runtime path from runcOption to opts.BinaryName (#22)
enable to pass a custom runtime path to gvisor-containerd-shim Signed-off-by: zhuangqh <zhuangqhc@gmail.com>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/v2/service.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/v2/service.go b/pkg/v2/service.go
index 3116c09fe..c2d2b1511 100644
--- a/pkg/v2/service.go
+++ b/pkg/v2/service.go
@@ -249,6 +249,9 @@ func (s *service) Create(ctx context.Context, r *taskAPI.CreateTaskRequest) (_ *
if o.RuntimeRoot != "" {
root = o.RuntimeRoot
}
+
+ opts.BinaryName = o.Runtime
+
path = filepath.Join(root, configFile)
if _, err := os.Stat(path); err != nil {
if !os.IsNotExist(err) {