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