From ae0c26b117c658e93a0bd9a175ea068a47a1641d Mon Sep 17 00:00:00 2001 From: "Andreas B. Mundt" Date: Tue, 16 Nov 2021 23:12:45 +0100 Subject: [PATCH] Fix too many open files error with more containers. --- roles/educontainer/tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/educontainer/tasks/main.yml b/roles/educontainer/tasks/main.yml index 70381af..5dea0d7 100644 --- a/roles/educontainer/tasks/main.yml +++ b/roles/educontainer/tasks/main.yml @@ -151,6 +151,16 @@ notify: enable and restart containers ######## +- name: prepare sysctl configuration + file: + path: /etc/sysctl.d/inotify.conf + state: touch + +- name: fix too many open files error + sysctl: + name: fs.inotify.max_user_instances + value: '1024' + sysctl_file: /etc/sysctl.d/inotify.conf - name: generate links to the initial container file: