I'm trying to run up an ES cluster which has TLS using Docker on a Mac. I'm using the instructions given in https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html
Versions are all latest available.
MacOS (Intel): 11.5.2
Step 3 is successful (it says done - but no other output. From memory I did get per-node results when I ran the same process in Linux and Docker).
Step 4 - when I try to bring up the cluster, nodes es02 and es03 start running but then exit.
When I look back at the logs from node ES02 I can see the following which may suggest that step 3 was not successful.
ElasticsearchSecurityException[failed to load SSL configuration [xpack.security.transport.ssl]]; nested: ElasticsearchException[failed to initialize SSL KeyManager - key file [/usr/share/elasticsearch/config/certificates/es02/es02.key] does not exist]; nested: NoSuchFileException[/usr/share/elasticsearch/config/certificates/es02/es02.key];'
I've tried this setup more than once. New files (re-copied from the Elastic site) and new folders and I get the same result.
Also when I ran the process through with Linux I had to change the
sysctl -w vm.max_map_count=262144 to complete the process. However, if I follow the instructions for the Mac, to rule this out being an issue, using
screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty, I get an error basically that this file is not available. There are some references to this, for example https://github.com/docker/for-mac/issues/4822. Is there still a requirement to amend the
vm.max_map_count for a Mac and if so is there another way to achieve this?