high severitydocker compose (v2 CLI plugin)
`docker compose up` with `deploy.resources.limits.memory: 10M` results in `docker stats` showing full host memory limit (e.g., 9MiB / 7.774GiB) instead of container limit (e.g., 9MiB / 10MiB). Warning may appear about ignored deploy key.
Root cause
The new `docker compose` (v2 CLI, Docker 20.10+) did not implement translation of `deploy.resources.limits` (intended for Swarm) to underlying Docker run flags like `--memory` for standalone mode, unlike the legacy `docker-compose` (v1) Python tool. Fixed in docker/compose-cli PR [#1528](https://github.com/docker/compose-cli/pull/1528).
docker-composecompose-clideploy.resourceslimits ignoredmemory limitcgroupsv2-cli