Skip to content

Commit

Permalink
fix copy config
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc committed Mar 24, 2020
1 parent c6a22ae commit 557532c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion run-elasticsearch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 557532c

Please sign in to comment.