docs icon indicating copy to clipboard operation
docs copied to clipboard

deploy:resources:limits section works also without using Docker Swarm

Open luigir-it opened this issue 1 year ago • 0 comments

Is this a docs issue?

  • [X] My issue is about the documentation content or website

Type of issue

Information is incorrect

Description

I was looking for a way to limit the ram usage of a container. A compose project I'm using achieved that with the deploy section (deploy:resources:limits:memory) According to the documentation

Deploy is an optional part of the Compose Specification. It is used to configure how services are deployed and managed in a Docker Swarm mode

I'm not using Swarm, so I thought that this wouldn't work. But according to docker stats the limits are being enforced

Location

https://docs.docker.com/compose/compose-file/deploy/

Suggestion

No response

luigir-it avatar May 27 '24 17:05 luigir-it