From 6fae25b305d714b3ab7608fa003f1af9bf024545 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Tue, 14 Feb 2023 13:33:23 +0800 Subject: Rename tools into bin --- tools/docker/dktags | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100755 tools/docker/dktags (limited to 'tools/docker') diff --git a/tools/docker/dktags b/tools/docker/dktags deleted file mode 100755 index 5a91434..0000000 --- a/tools/docker/dktags +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash - -# Orignally copied from https://stackoverflow.com/a/39454426/7051075 - -if [ $# -lt 1 ] -then -cat << HELP - -dktags -- list all tags for a Docker image on a remote registry. - -EXAMPLE: - - list all tags for ubuntu: - dktags ubuntu - - - list all php tags containing apache: - dktags php apache - -HELP -fi - -image="$1" -tags=`wget -q https://registry.hub.docker.com/v1/repositories/${image}/tags -O - | sed -e 's/[][]//g' -e 's/"//g' -e 's/ //g' | tr '}' '\n' | awk -F: '{print $3}'` - -if [ -n "$2" ] -then - tags=` echo "${tags}" | grep "$2" ` -fi - -echo "${tags}" -- cgit v1.2.3-70-g09d2