From 557532ca4a85176b3dcdba6ea85db323075098ba Mon Sep 17 00:00:00 2001 From: everpcpc Date: Tue, 24 Mar 2020 09:37:50 +0800 Subject: [PATCH] fix copy config --- run-elasticsearch.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/run-elasticsearch.sh b/run-elasticsearch.sh index 2f1e7de..3f3fdf7 100755 --- a/run-elasticsearch.sh +++ b/run-elasticsearch.sh @@ -12,7 +12,10 @@ docker network create elastic mkdir -p /usr/share/elasticsearch/plugins/ mkdir -p /usr/share/elasticsearch/config/ -docker run yourimage tar -c -C /usr/share/elasticsearch/ config | tar x -C /usr/share/elasticsearch/ +docker run --rm \ + --entrypoint=tar \ + docker.elastic.co/elasticsearch/elasticsearch:${STACK_VERSION} \ + -c -C /usr/share/elasticsearch/ config | tar x -C /usr/share/elasticsearch/ if [[ ! -z $PLUGINS ]]; then