September 2018
Intermediate to advanced
764 pages
20h 6m
English
To have confidence that our Dockerized Elasticsearch container is working, we should first stop our existing Elasticsearch daemon:
$ sudo systemctl stop elasticsearch.service$ sudo systemctl status elasticsearch.service● elasticsearch.service - Elasticsearch Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vend Active: inactive (dead) Docs: http://www.elastic.co
As a test, run the E2E tests on our API repository and make sure you get errors similar to Error: No Living connections. This means Elasticsearch is not running and our API cannot connect to it.
Now, use the docker run command to run the elasticsearch-oss image as a container:
$ docker run --name elasticsearch -e "discovery.type=single-node" ...
Read now
Unlock full access