A lot of answers lead to the docker run
command and the --memory-swap
parameter. But how to do this once for all containers? There are Windows settings, but the swap parameter cannot be set to less than 512 Mb.
Asked
Active
Viewed 1,230 times
2

jonrsharpe
- 115,751
- 26
- 228
- 437

Cherry
- 31,309
- 66
- 224
- 364
-
you can set that per container basis `--memory-swap=0m` – LinPy Sep 10 '19 at 09:12
-
With what command? `docker run` is not a solution for me – Cherry Sep 10 '19 at 09:26
-
it is available in compose also https://docs.docker.com/compose/compose-file/#resources – LinPy Sep 10 '19 at 09:28
-
Do mean `memswap_limit`? Can it be set for all containers in one place in `docker-compose` file? – Cherry Sep 10 '19 at 09:39
-
no , I think for each service in the compose – LinPy Sep 10 '19 at 09:41