Add default sysfs settings

This uses the new Alpine sysfs.conf service to allow config of sysfs.

Default file that sets transparent huge pages to only be used on request
to fix #368

Database setting available for user configuration.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack
2016-08-12 14:13:40 +01:00
parent 0f0c961603
commit c0579f4b83
4 changed files with 4 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ start() {
ebegin "Configuring host settings from database"
mobyconfig exists etc/sysctl.conf && mobyconfig get etc/sysctl.conf > /etc/sysctl.conf
mobyconfig exists etc/sysfs.conf && mobyconfig get etc/sysfs.conf > /etc/sysfs.conf
mobyconfig exists etc/resolv.conf && mobyconfig get etc/resolv.conf > /etc/resolv.conf
mobyconfig exists etc/hosts && mobyconfig get etc/hosts >> /etc/hosts

View File

@@ -1,4 +0,0 @@
vm.max_map_count = 262144
net.core.somaxconn = 1024
fs.inotify.max_user_watches = 524288
fs.file-max = 524288