I've tried to add runv as a second runtime for docker daemon, then start runv container but failed, I added some debug point and got error during runv create
failed to create container: fork/exec /xxxx/xxxx/runv/runv: operation not permitted
I've tried to debug this, and find that if I remove one line,
diff --git a/create.go b/create.go
index 33fc64a..f1f9d74 100644
--- a/create.go
+++ b/create.go
@@ -341,8 +343,8 @@ func ociCreate(context *cli.Context, container string, createFunc func(stdin, st
Stdout: tty,
Stderr: tty,
SysProcAttr: &syscall.SysProcAttr{
- Setctty: tty != nil,
- Setsid: true,
+ //Setctty: tty != nil,
+ Setsid: true,
},
}
err = cmd.Start()
Everything works except small error:
$ docker run -ti --runtime runv busybox sh
set winsize failed, rpc error: code = Unknown desc = Error:
/ #
I know this is not the right fix, but provide this information for your debug, hope this can be fixed soon.