elasticsearch
Elasticsearch Overview
Secure your stack with a hardened Elasticsearch image freshly-built by Minimus. Minimus images always include the most up-to-date package version for all packages and dependencies contained in the image.
Use Elasticsearch when you need a distributed search and analytics engine that enables fast storage, retrieval, and analysis of large structured and unstructured datasets via a RESTful API.
Try It Out
Take the Minimus Elasticsearch image for a test run. First, create a new docker network.
docker network create elasticsearchNow you can run Elasticsearch:
docker run --name minimus-es \
--net elasticsearch \
-p 9200:9200 \
-it -m 1GB \
reg.mini.dev/elasticsearchThis runs the container in interactive mode with a memory limit of 1GB and maps port 9200 in the container to port 9200 on the host.
When the container initializes, it should print the elastic superuser password and an enrollment token for Kibana. Save them as they can't be retrieved, only regenerated. You will also see the http_ca.crt SSL certificate. Copy the SSL certificate from the container to your host:
docker cp minimus-es:/usr/share/elasticsearch/config/certs/http_ca.crt .Next, make a REST API call to Elasticsearch to make sure your container is up and running. You'll need your superuser password.
curl --cacert http_ca.crt -u elastic:$ELASTIC_PASSWORD https://localhost:9200If needed, you can regenerate the credentials (assuming your container name is minimus-es):
docker exec -it minimus-es /usr/share/elasticsearch/bin/elasticsearch-reset-password -u elastic
docker exec -it minimus-es /usr/share/elasticsearch/bin/elasticsearch-create-enrollment-token -s kibanaIf you want to persist the data so it's not lost when the container exits, you'll need to bind a volume. If needed, give your target directory permissions. Then run the container and mount your target directory to the default path:
docker run --name minimus-es \
--net elasticsearch \
-p 9200:9200 \
-it -m 1GB \
-v /target/path:/usr/share/elasticsearch/data \
reg.mini.dev/elasticsearchDeploy via a Helm chart
Elasticsearch can be deployed via Helm as part of the Elastic Stack and managed by the ECK Operator. See the related charts tab to get started.
Technical Considerations
The Elasticsearch image provided by Minimus is a slim, security-hardened alternative to the public image from Docker Hub. The images are largely interchangeable, with a few differences as noted below.
Elasticsearch built by Minimus:
-
Runs as non-root by default. The public image runs with group ID 0 (root group).
-
Listens on but does not expose the default ports: 9200/tcp and 9300/tcp. The public image exposes those ports by default.
-
The entrypoint script is under the path
/sbin/tini. By comparison, the public image entrypoint is under/bin/tini. -
Drill down on the version specification tab to see the default user, listening ports, entrypoint, volumes, environment variables, etc.
-
The production image includes a shell as it is required.
The Payoff
A hardened, minimal image that will remain more secure for the long run and accrue vulnerabilities at a slower rate.
- See the risk reduction dashboard for a detailed CVE comparison over the past 30 days.
- Review the compliance report to see the default hardening and security configurations for the image.
Terms & Info
Trademark
This catalog is published by Minimus. All product names, logos, and marks, other than those belonging to Minimus, shown are owned by their respective rights holders and appear here only to identify the open source software each image contains. Minimus claims no ownership of those marks and implies no affiliation with, endorsement by, certification by, or sponsorship by any rights holder.
Disclaimer
Images are provided "as-is" without warranty of any kind. "Hardened" refers to the security configuration applied at the time of build and does not constitute a guarantee of ongoing security or absence of vulnerabilities. The free tier is provided without support, SLA, or guaranteed patching timelines. Security updates may be applied to paid subscriptions before or instead of free tier images. By pulling or using any image you agree to our Terms of Use.