Open
Description
Description
I'm using docker swarm mode to start a service with
--limit-memory 2GB \
and the container then used 2GB plus abrou 4GB SWAP.
I was looking for a way to limit or remove the SWAP capabilities of the service but without any luck in the docker service create
documentation.
As far as I can see, "normal" docker containers can be limited with --memory-swap
.
How can we remove the SWAP space for services in swarm mode?
Steps to reproduce the issue:
- Start a service and limit it's memory
- Make the task consume more memory than the limit
Output of docker version
:
17.06
Additional environment details (AWS, VirtualBox, physical, etc.):
Ubuntu 16.04