/etc/init.d/docker: 62: ulimit: error setting limit (Invalid argument) Problem

When Dind is installed with the sh file obtained from https://get.docker.com, an error message as follows is received when starting docker:
/etc/init.d/docker:62: ulimit: limit setting error (Invalid argument)
This is because line 62 of the /etc/init.d/docker file says ulimit -Hn 524288.
This line should be saved by deleting the -H argument and changing it to ulimit -n 524288. After this docker can now be run.
Container where the error was received: Debian GNU/Linux 11 (bullseye)
This error started to be received approximately as of Friday, January 19, 21:00:00UTC 2024.


Can confirm the workaround by @royalamrah works. I do not have the issue if I install docker-ce: 24.0.7-1. the -H param is not in the init script.

1 Like

Yes, there was no problem in the old version.