While we are looking at pulling container images and starting containers, let's go and run an Elasticsearch container.
Creating and running an Elasticsearch container
How to do it
Like most things Docker, there are a lot of different versions of Elasticsearch containers available. We will use the official Elasticsearch image available in Elastic's own Docker repository:
- To install the image, enter the following:
$docker pull docker.elastic.co/elasticsearch/elasticsearch:6.1.1
Note that we are using another way of specifying the image to pull. Since this is on Elastic's Docker repository, we include the qualified name that includes the URL to the container image instead of just the image name. The :6.1.1 is...