mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #22867 from justincormack/checklimits
Begin a section in the check-config script to check limits
This commit is contained in:
commit
273ab8591e
1 changed files with 13 additions and 0 deletions
|
@ -275,3 +275,16 @@ echo '- Storage Drivers:'
|
||||||
} | sed 's/^/ /'
|
} | sed 's/^/ /'
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
check_limit_over()
|
||||||
|
{
|
||||||
|
if [ $(cat "$1") -le "$2" ]; then
|
||||||
|
wrap_bad "- $1" "$(cat $1)"
|
||||||
|
wrap_color " This should be set to at least $2, for example set: sysctl -w kernel/keys/root_maxkeys=1000000" bold black
|
||||||
|
else
|
||||||
|
wrap_good "- $1" "$(cat $1)"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
echo 'Limits:'
|
||||||
|
check_limit_over /proc/sys/kernel/keys/root_maxkeys 10000
|
||||||
|
echo
|
||||||
|
|
Loading…
Add table
Reference in a new issue