swarmkit icon indicating copy to clipboard operation
swarmkit copied to clipboard

Add support for memswap_limit

Open Mart-Bogdan opened this issue 1 year ago • 0 comments

Currently Swap related options of standalone docker aren't available in Swarm Mode.

Docker compose supports top level(under service) element of memswap_limit, but using it with stack deploy causes error:

memswap_limit: Set resource limits using deploy.resources

and resources section doesnt's support either top level elements memswap_limit nor memswap.

I've tried it in deploy.resources.limits as well, but no success:

services.my_srv.deploy.resources.limits Additional property memswap is not allowed

Related to this closed(but not fixed) issue https://github.com/docker/compose/issues/7594#issuecomment-2521853318

Mart-Bogdan avatar Dec 06 '24 01:12 Mart-Bogdan