Hi, I’m using Docker on a machine with limited resources. I want to restrict the resources available to each container so that no container can monopolize all available resources and affect other containers. Instead of configuring each container individually, I’m looking to apply the same configuration to all containers created within the same Docker. Is it possible to define this configuration globally for all containers in Docker ? or set a maximal value for each ressource, for example maximize consumption memory to 1GB for all containers…
I don’t think there is a way to define limits globally for every container.
Within one docker-compose.yml
file you can re-use parts, check “YAML anchors (&) and aliases (*)”.
1 Like
I closed the topic. Don’t open a new topic when you are not satisfied with the answer in the first one.
1 Like