From 55dc3a1d2a00bb15155affc193720077486c88e8 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Fri, 2 Apr 2021 17:23:29 +0200 Subject: [PATCH] Add versions listing script --- bin/image-versions.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bin/image-versions.sh diff --git a/bin/image-versions.sh b/bin/image-versions.sh new file mode 100755 index 0000000..53fd987 --- /dev/null +++ b/bin/image-versions.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +# Usage: ./image-version.sh +# Example: ./image-version.sh gitea/gitea +# +# Reads image metadata from Docker hub and lists versions + +IMAGE="$1" + +skopeo inspect "docker://$IMAGE" | jq '.RepoTags'