Install Elasticsearch 7 under Docker for MacAssumes Docker Desktop installed, then in terminal;

docker pull docker.elastic.co/elasticsearch/elasticsearch:7.17.25

docker run -p 127.0.0.1:9207:9200 -p 127.0.0.1:9307:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.17.25

At this point it should appear in docker desktop as a container you can start and stop