feat: add flag to disable to the memory swappiness

This commit is contained in:
Jiahao Ji Zhou 2025-01-23 11:51:53 +01:00
parent 76f9cea516
commit 51a66ff65e
4 changed files with 37 additions and 10 deletions

View file

@ -465,3 +465,15 @@ Environment Variable: WATCHTOWER_PORCELAIN
Possible values: v1
Default: -
```
## Compatibility with podman (Disable memory swappiness)
Disable memory swappiness. By default, podman sets the memory-swappiness value to 0 when no memory-swappiness is defined
When this flag is specified, watchtower will set the memory-swappiness to nil, fixing a compatibility issue with podman running with crun and cgroupv2
```text
Argument: --disable-memory-swappiness
Environment Variable: WATCHTOWER_DISABLE_MEMORY_SWAPPINESS
Type: Boolean
Default: false
```