【发布时间】:2020-12-29 14:36:15
【问题描述】:
我正在尝试使用 docker compose 在我的 RasPi4 上运行弹性堆栈。问题是 Elastic 不为 ARM 架构提供图像……只有 X86。所以 raspi 不支持开箱即用。
每次我启动 docker compose config 时都会收到此消息
7.9.3: Pulling from elasticsearch/elasticsearch
ERROR: no matching manifest for linux/arm/v7 in the manifest list entries
Google 搜索的结果大多指向非官方图像……我会尝试……但这个已经 4 岁了:https://hub.docker.com/r/ind3x/rpi-elasticsearch/。所以我想我没有得到最新的弹性搜索。
有人知道我如何让橡皮筋跑起来吗?这是我的 docker-compose.yml ... 非常直接。
version: '3.3'
services:
elastic-node-1:
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.3
container_name: elastic-node-1
restart: always
environment:
- node.name=elastic-node-1
- cluster.name=es-docker-cluster
- discovery.seed_hosts=elastic-node-2
- cluster.initial_master_nodes=elastic-node-1,elastic-node-2
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- elastic-data-1:/usr/share/elasticsearch/data
ports:
- 9200:9200
networks:
- elastic-net
elastic-node-2:
image: docker.elastic.co/elasticsearch/elasticsearch:7.9.3
container_name: elastic-node-2
restart: always
environment:
- node.name=elastic-node-2
- cluster.name=es-docker-cluster
- discovery.seed_hosts=elastic-node-1
- cluster.initial_master_nodes=elastic-node-1,elastic-node-2
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- elastic-data-2:/usr/share/elasticsearch/data
ports:
- 9201:9201
networks:
- elastic-net
kibana:
image: docker.elastic.co/kibana/kibana:7.9.3
container_name: kibana
restart: always
depends_on:
- elastic-node-1
- elastic-node-2
ports:
- 5601:5601
environment:
ELASTICSEARCH_URL: http://elastic-node-1:9200
ELASTICSEARCH_HOSTS: http://elastic-node-1:9200
networks:
- elastic-net
volumes:
elastic-data-1:
driver: local
elastic-data-2:
driver: local
networks:
elastic-net:
driver: bridge
如果没有办法让这个弹性设置运行,你能推荐任何其他类似于 raspi(使用 linux)的硬件,它是 x86 并且可以代替我的 raspi 吗?然后我会为我的弹性堆栈切换硬件。
【问题讨论】:
标签: raspberry-pi elastic-stack raspberry-pi4