You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [ "$current_value" -eq 65536 ]; then
# Run the command to update the Docker on the host
echo "[Service]
LimitNOFILE=1048576" > /etc/systemd/system/docker.service.d/override.conf
# Reload the systemd configuration
systemctl daemon-reload
# Restart the Docker service
systemctl restart docker
echo "Host NOFILE limit for Docker service configuration updated."
else
echo "Value is not 65536, skipping the command."
fi
Some Linux distributions (I'm looking at you Arch) change the limit of NOFILE to 65536 instead of the recommended (and default by Docker) 1048576
moby/moby@428d733
This causes some random problems, especially with rsyslog using 100% CPU
Latest Arch:
cat /proc/$(pgrep containerd | head -1)/limits | grep files
Max open files 65536 65536 files
The text was updated successfully, but these errors were encountered: