Skip to content

cgroup2/systemd: remove /sys/fs/cgroup/system.slice/runc-test.scope: device or resource busy #2344

@lifubang

Description

@lifubang

When we don't use pid namespace or use pid namespace with path in config.json, we can reproduce it by steps:

[root@localhost systemdtest]# runc --systemd-cgroup run -d test
[root@localhost systemdtest]# runc --systemd-cgroup exec -d test sleep 2000000
[root@localhost systemdtest]# cat /sys/fs/cgroup/system.slice/runc-test.scope/cgroup.procs
278991
279011
[root@localhost systemdtest]# runc --systemd-cgroup delete -f test
ERRO[0000] remove /sys/fs/cgroup/system.slice/runc-test.scope: device or resource busy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions