Unable to start  SonarQube in a Docker container and showed an error below,

ERROR: [1] bootstrap checks failed. You must address the points described in the following [1] lines before starting Elasticsearch.
bootstrap check failure [1] of [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

Have to set the vm.max_map_count value to 262144 at least in your instance or virtual machine, we have two options here, 

you can insert the new entry into the sysctl configuration file  /etc/sysctl .conf  with the required parameter,

$ sudo vim /etc/sysctl .conf

vm.max_map_count = 262144

and also execute the command below to reflect directly and change the current state of Kernel.

$ sudo sysctl -w vm.max_map_count=262144

You can verify the configured in the setting by running the command,

$ sudo sysctl vm.max_map_count

Finally, don't forget to restart the instance or use the command below,

sudo sysctl --system

For Windows:

If you're using the Windows system just follow the steps below,

Open a PowerShell command prompt and execute the command,

wsl -d docker-desktop

After that,

sysctl -w vm.max_map_count=262144