Docker Community Forums

Share and learn in the Docker community.

How to set MemorySwap for service?

docker
swarm

(Kuburoman) #1

Hi,
can i set “MemorySwap” and “MemorySwappiness” for docker service?
I would like to disable memory swap for docker containers (started by docker service) but i don’t want to disable it for host machine.
What means value of -1 at “MemorySwappiness”?

Docker version: 17.06.2-ce