How do I limit the memory resource of a group of docker containers?
问题 I understand that I can use --memory and --memory-swap to limit memory resource per container. But, how do I limit memory resource per a group of containers? My system has 8GB RAM memory and consists of 2 docker containers. I want to set an 8 GB limit on both containers. I do not want to set a 4GB memory resource limit for each container as A container may use more than 4GB memory. Both containers won't use 4GB memory at the same time, so it would make sense to give the unused memory of