简体   繁体   English

新创建的Docker容器是否与新的cgroup相关联?

[英]Is a newly created Docker container associated with a new cgroup?

Is a newly created Docker container associated with a new cgroup? 新创建的Docker容器是否与新的cgroup相关联?

After all the processes inside a container finishes running, and the container is restarted again sometime later, will it be associated with a new cgroup or still the same cgroup as before? 容器中的所有进程完成运行,并在以后的某个时间再次重新启动容器后,它将与新的cgroup关联还是仍与以前的cgroup关联?

Yes, and that is most probably under system.slice. 是的,这很可能在system.slice下。 You can change the slice for all docker containers. 您可以更改所有docker容器的slice

This can be viewed using systemd-cgls , or check for cat /proc/PROCESS_ID/cgroup 可以使用systemd-cgls查看,或检查cat /proc/PROCESS_ID/cgroup

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM