Skip to content

Instantly share code, notes, and snippets.

@munnerz
Created April 18, 2018 16:59
Show Gist options
  • Save munnerz/bb19540ab547fc5d2ec1e1af0f7a2963 to your computer and use it in GitHub Desktop.
Save munnerz/bb19540ab547fc5d2ec1e1af0f7a2963 to your computer and use it in GitHub Desktop.
#!/bin/bash
base=docker.elastic.co/elasticsearch/elasticsearch
versions="6.2.3 6.1.4 6.0.1 5.6.8 5.6.7 5.6.6 5.6.5 5.6.4 5.6.3 5.6.2 5.6.1 5.6.0 5.5.3 5.4.3 5.3.3 5.2.1"
for v in ${versions}; do
img=${base}:${v}
ver=$(docker run -it --entrypoint=java "${img}" -version 2>/dev/null| grep version)
echo "${img} = ${ver}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment