Not able to run elastic search stack by using docker compose mac M1

I am trying to run the elastic search stack with multi-node cluster using docker compose. I used this link to run the containers but i getting this error.

2024-12-28 03:07:32 {"@timestamp":"2024-12-28T02:07:32.466Z", "log.level":"ERROR", "message":"fatal exception while booting Elasticsearch", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"main","log.logger":"org.elasticsearch.bootstrap.Elasticsearch","elasticsearch.node.name":"es01","elasticsearch.cluster.name":"docker-cluster","error.type":"java.lang.UnsupportedOperationException","error.message":"seccomp unavailable: CONFIG_SECCOMP not compiled into kernel, CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER are needed","error.stack_trace":"java.lang.UnsupportedOperationException: seccomp unavailable: CONFIG_SECCOMP not compiled into kernel, CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER are needed\n\tat org.elasticsearch.nativeaccess@8.17.0/org.elasticsearch.nativeaccess.LinuxNativeAccess.tryInstallExecSandbox(LinuxNativeAccess.java:255)\n\tat org.elasticsearch.server@8.17.0/org.elasticsearch.bootstrap.Elasticsearch.initializeNatives(Elasticsearch.java:303)\n\tat org.elasticsearch.server@8.17.0/org.elasticsearch.bootstrap.Elasticsearch.initPhase2(Elasticsearch.java:170)\n\tat org.elasticsearch.server@8.17.0/org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:75)\n"}
2024-12-28 03:07:32 ERROR: Elasticsearch did not exit normally - check the logs at /usr/share/elasticsearch/logs/docker-cluster.log
2024-12-28 03:07:32 
2024-12-28 03:07:32 ERROR: Elasticsearch died while starting up, with exit code 1

OS: Sequoia 15.2 (24C101)
Chip: Apple M1 Pro

Approaches that didn’t work

  • tried bypassing the seccomp by setting this security_opt:
    - seccomp:unconfined
    in docker-compose.yml
  • tried setting --platform linux/amd64

Have you tried searching for the error message?

Very first result

Or the second

I don’t know if seccomp is available on amd64 in Docker Desktop

I had already tried both of the options. No luck.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.