Created
April 18, 2018 16:59
-
-
Save munnerz/bb19540ab547fc5d2ec1e1af0f7a2963 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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