I am trying to run sonarqube in a docker container. Container fails on startup with error “: max file descriptors  for elasticsearch process is too low, increase to at least ”. The docker host is Windows server 2019 Version 1809 with Docker Engine version 19.03.12 (experimental mode enabled) and does not use Docker for Windows.
To fix the error i have tried:
- setting higher ulimits using sysctl on the container but get error sysctl: setting key “fs.file-max”: Read-only file system. Using --privileged flag does not help. Get error C:\Program Files\Docker\docker.exe: Error response from daemon: Windows does not support privileged mode.
- setting ulimits by adding default-ulimits to the docker run command but get error C:\Program Files\Docker\docker.exe: Error response from daemon: invalid option: Windows does not support Ulimits.
As far as I can tell this setting should be configured at host level, but that’s not possible for Windows Server 2019. Elasticsearch itself gives alternatives for Docker-Desktop and Docker-Machine / WSL but that’s not what I use (see https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-configuration-methods) Does anyone know any workaround for this issue?
Thanks a lot for any help!