#!/bin/bash # Images are cached locally, it may be needed # to delete an old image and download again # the latest snapshot. exec docker run \ --rm \ -e "node.attr.testattr=test" \ -e "path.repo=/tmp" \ -e "repositories.url.allowed_urls=http://snapshot.*" \ -e "discovery.type=single-node" \ -p 9200:9200 \ --network=elastic \ --name=elasticsearch \ docker.elastic.co/elasticsearch/elasticsearch:8.0.0-SNAPSHOT