Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mydocker detach 创建后台运行的容器,容器运行结束后,怎么回收cgroup等资源 #93

Open
weimayougansha opened this issue Jan 19, 2024 · 1 comment

Comments

@weimayougansha
Copy link

“当 mydocker 进程退出后,容器进程就会被进程号为 init 进程接管,这时容器进程还是运行着的,这样就实现了 mydocker 退出、容器不岩掉的功能。”
但是mydocker 进程结束了,cgroup是怎么回收的,实验发现cgroup并没有回收

@lin-coco
Copy link

-d方式下,我没有进行清理,而是在mydocker rm的时候进行clear,容器还在运行的时候不能清理cgroup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants