Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

cgroups: add test to make sure cgroups are removed even with running processes #1177

@devimc

Description

@devimc

once kata-containers/runtime#1189 land,

docker run -dti --cgroup-parent patito --runtime kata-runtime --name foo debian bash
echo $$ | sudo tee /sys/fs/cgroup/cpu,cpuacct/patito/d26db249b7fdbffad4d353e7a3a43d7ca5616e7b54732f0a60da87a9bb716c7c/cgroup.procs
docker rm -f foo
$ sudo ls /sys/fs/cgroup/cpu,cpuacct/patito/d26db249b7fdbffad4d353e7a3a43d7ca5616e7b54732f0a60da87a9bb716c7c/
ls: cannot access '/sys/fs/cgroup/cpu,cpuacct/patito/d26db249b7fdbffad4d353e7a3a43d7ca5616e7b54732f0a60da87a9bb716c7c/': No such file or directory

Metadata

Metadata

Assignees

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