我按照以下步骤设置3 Linux节点集群的ElasticSearch & Kibana使用docker-compose.在这个过程中,当运行命令“docker-compose -f create-certs.yml run --rm create_certs”,得到以下输出错误:
Creating network "es-dev_elastic" with driver "overlay"
Creating volume "es-dev_config" with local driver
Pulling create_certs (docker.elastic.co/elasticsearch/elasticsearch:7.17.6)...
Trying to pull repository docker.elastic.co/elasticsearch/elasticsearch ...
7.17.6: Pulling from docker.elastic.co/elasticsearch/elasticsearch
<Some-ID>: Pull complete
<Some-ID>: Pull complete
<Some-ID>: Pull complete
<Some-ID>: Pull complete
<Some-ID>: Pull complete
<Some-ID>: Pull complete
<Some-ID>: Pull complete
<Some-ID>: Pull complete
<Some-ID>: Pull complete
Digest: sha256:<Some-ID>
Status: Downloaded newer image for docker.elastic.co/elasticsearch/elasticsearch:7.17.6
**ERROR: Cannot create container for service create_certs: failed to mount local volume: mount /mnt/elasticmount/es11/config:/var/lib/docker/volumes/es-dev_config/_data, flags: 0x1000: no such file or directory**
在此之前我没有创建任何本地卷装载。所以,如果这是问题所在
如何在Docker中创建和装载目录?
1条答案
按热度按时间4c8rllxm1#
如果我没猜错的话,你想创建3个节点的ElasticSearch和千花。下面我提供了一个docker-compose文件,它将帮助你创建3个节点的ElasticSearch和千花集群。
这将创建3个命名卷(esdata 1、esdata 2、esdata 3),这些卷将在
/var/lib/docker/volumes/
处创建如果你遇到任何问题,请告诉我。