Docker swarm doesn't support cgroup_parent according to it's documentation: https://docs.docker.com/compose/compose-file/#cgroup_parent I need to set resource constrains for the whole set of docker containers running on a particular host(not just per container constrains). Running vanilla Docker(not in Swarm mode) allows to have cgroups parent provided:
docker run -it --rm --cgroup-parent=/climit-cgroup/ <<image-name>>
or if one uses docker compose file using cgroup_parent
.
But running docker containers in swarm node doesn't provide this ability. What are possible solutions to this problem in scope of Docker Swarm? Is there a way to enforce the existing cgroup on current host's swarm node?