I have been having this issues recently on QNAP TS-473A NAS using Container Station. For my requirements, I need to run a ElasticSearch docker cluster using two nodes utilising docker-compose.yml
file.
I had to connect to QNAP NAS using SSH and ran the following command which fixed the issue:
sudo sysctl -w vm.max_map_count=262144
However, this command will only set this configuration on run time session. A restart of NAS will not survive this configuration.
To permanently change the value for the vm.max_map_count setting, update the value in /etc/sysctl.conf
. But I am not able to find this file on QNAP TS-473A NAS. Because generally, we don't restart QNAP NAS very frequent, the preceding command can fix the issue on temp basis.
Permanent fix
We can run any CLI commands or scripts using autorun.sh
script of a QNAP NAS. What this autorun.sh
script does is, it runs any valid custom commands/scripts during NAS boot up time.
Here, you can find more details of this capability: https://www.qnap.com/en/how-to/faq/article/running-your-own-application-at-startup.