进入官网下载m1芯片的桌面版docker
下载安装后,调大内存,不然elasticsearch会自动退出
然后在这里搜索arm64v8/elasticsearch找自己想要安装的版本
或者直接执行:
docker pull arm64v8/elasticsearch:7.14.0
docker pull arm64v8/logstash:7.14.0
docker pull arm64v8/kibana:7.14.0
➜ ~ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
arm64v8/kibana 7.14.0 1c52b5264c4b 3 weeks ago 1.49GB
arm64v8/elasticsearch 7.14.0 d9c406333741 3 weeks ago 1.12GB
arm64v8/logstash 7.14.0 f0b0f64a222c 3 weeks ago 1.67GB
➜ ~
docker network create somenetwork
然后执行时比平常多了–platform linux/arm64,后面的是arm64v8/elasticsearch:7.14.0也要写完整
➜ ~ docker run --platform linux/arm64 -d --name elasticsearch --net somenetwork -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" arm64v8/elasticsearch:7.14.0
d0c0cd9945235b6342b5bd23ea4339109c20c46bfbaa781cbdbd3337078bc0b2
➜ ~ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d0c0cd994523 arm64v8/elasticsearch:7.14.0 "/bin/tini -- /usr/l…" 13 seconds ago Up 12 seconds 0.0.0.0:9200->9200/tcp, :::9200->9200/tcp, 0.0.0.0:9300->9300/tcp, :::9300->9300/tcp elasticsearch
后面的配置可参考
https://zhuanlan.zhihu.com/p/32559371
https://www.cnblogs.com/fbtop/p/11005469.html
这里还有非常多的arm架构的软件