Good Day,
I'm trying to stand up a demo / test install of ES on Docker for Mac. I have a M1 (ARM) MacBook.
When I try to do the docker compose up I get the following error...
Attaching to elasticsearch, kibana
elasticsearch  | Error: could not find libjava.so
elasticsearch  | Error: Could not find Java SE Runtime Environment.
elasticsearch exited with code 2
I have Java installed and even set the JAVA_HOME variable... (My Terminal)
cedricgaines@MyM1Air ESTest % java -version
java version "16.0.1" 2021-04-20
Java(TM) SE Runtime Environment (build 16.0.1+9-24)
Java HotSpot(TM) 64-Bit Server VM (build 16.0.1+9-24, mixed mode, sharing)
and when I echo JAVA_HOME...
cedricgaines@MyM1Air ESTest % echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk-16.0.1.jdk/Contents/Home
Here is the content of my simple docker-compose.yml file...
`
version: "3.1"
services:
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:6.5.1
    container_name: elasticsearch
    environment:
      - xpack.security.enabled = false
      - discovery.type=single-node
    ulimits:
      memlock:
        soft: -1
        hard: -1
      nofile:
        soft: 65536
        hard: 65536
    cap_add: 
        - IPC_LOCK
    volumes:
      - elasticsearch-data-volume:/usr/share/elasticsearch/data
    ports:
      - 9200:9200
      - 9300:9300
  kibana:
    image: docker.elastic.co/kibana/kibana:6.5.1
    container_name: kibana
    environment:
      - ELASTICSEARCH_HOSTS=http://elasticsearch:9200
    ports:
      - 5601:5601
    depends_on:
      - elasticsearch
  
volumes:
  elasticsearch-data-volume:
        driver: local
`
What Am I Overlooking...
Thanks