From a780173627afcb62e4e6f0c4bdf73b5e8ceb870c Mon Sep 17 00:00:00 2001 From: Curtis Hall Date: Wed, 22 Nov 2023 16:11:40 -0600 Subject: [PATCH] Update install.sh For all RHEL releases run this: ``` sed -i 's/^LimitNOFILE=infinity$/LimitNOFILE=1048576/' /usr/lib/systemd/system/docker.service sed -i 's/^LimitNOFILE=infinity$/LimitNOFILE=1048576/' /usr/lib/systemd/system/containerd.service ``` https://github.com/containerd/containerd/issues/3201 --- scripts/install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/install.sh b/scripts/install.sh index 39ae9de5..9e9fd1ea 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -298,6 +298,12 @@ install_redhat_packages() { yum update yum install -y git install_docker +# Fix mainly for rocky...but we will try on all RHEL releases + sed -i 's/^LimitNOFILE=infinity$/LimitNOFILE=1048576/' /usr/lib/systemd/system/docker.service + sed -i 's/^LimitNOFILE=infinity$/LimitNOFILE=1048576/' /usr/lib/systemd/system/containerd.service + systemctl daemon-reload + systemctl stop docker + systemctl start docker } # Function to install packages on SUSE-based distributions