Docker incorrectly assumes swappiness can't be more than 100 #41534
Labels
area/daemon
area/runtime
kind/enhancement
Enhancements are not bugs or new features but can improve usability or performance.
Description
When passing the --swappiness flag to
run
orcreate
with a value greater than 100, Docker will throw an error stating swappiness has to be between 0 and 100.However, swappiness values above 100 are perfectly valid, and the swappiness setting is more than just a percentage knob.
Unless this is a limit in cgroups that isn't in-line with the kernel's own swappiness settings, Docker should accept swappiness values greater than 100 in line with the rest of the system.
Steps to reproduce the issue:
docker create
ordocker run
command with--swappiness=133
Describe the results you received:
Describe the results you expected:
Container starts normally with the specified swappiness setting.
Output of
docker version
:Output of
docker info
:The text was updated successfully, but these errors were encountered: