Q1:
Trying to better understand the Elastic Docker images. E.g., if you were to build a container with
docker pull docker.elastic.co/elasticsearch/elasticsearch:6.2.3
This container could run indefinitely. Conversely, If you were to build a container with
docker pull busybox docker's "hello-world!"
the container would be created, "hello-world!" print to terminal, and the container stops. What's going on behind the scenes that prevents the elasticsearch container from stopping?
Q2:
I have customized ELK images that are passed into a multi-stage docker build. Once my later-stage containers are built (via my customized ELK images), is there any reason I would want to leave the earlier-stage containers running? If not, what would be the best way to stop these containers?
Thanks!