Skip to content

running rootful buildkitd inside a container in rootless mode: runc run failed: no cgroup mount found in mountinfo #3668

Open
@apostasie

Description

@apostasie

Description

I have a rather complex build system, and for now cannot reduce it to a simple reproducer.

Pretty much, buildkitd is started inside a container, with --privileged, and then buildctl is used directly to communicate with it.

When the buildkitd container is started with docker, things work fine.

When the buildkitd container is started with nerdctl (rootless), any RUN instruction fails immediately with:
runc run failed: no cgroup mount found in mountinfo

I am not a cgroup specialist... @AkihiroSuda does the above ^ ring a bell for you by any chance? Any specific place I should look into?

If not, I will come up with a reproducer eventually, but need time to simplify it.

Steps to reproduce the issue

No response

Describe the results you received and expected

na

What version of nerdctl are you using?

2.0.0

Are you using a variant of nerdctl? (e.g., Rancher Desktop)

None

Host information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions