Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

[bug]failed to start runv container with docker daemon #520

@WeiZhang555

Description

@WeiZhang555

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions