简体   繁体   中英

Is a newly created Docker container associated with a new cgroup?

Is a newly created Docker container associated with a new 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?

Yes, and that is most probably under system.slice. You can change the slice for all docker containers.

This can be viewed using systemd-cgls , or check for cat /proc/PROCESS_ID/cgroup

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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