swarmkit
swarmkit copied to clipboard
Add support for memswap_limit
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