Make sure to login to docker hub before getting started
$ docker login
# pull repo from docker hub
$ docker pull elasticsearch:latest
# run the container
# --name option is the reference for the container so that you can start and stop it after the initial run