source: ProjectBuilder/devel/contrib/docker-show-repo-tags.sh

Last change on this file was 2124, checked in by Bruno Cornec, 8 years ago
  • Adds 2 example contrib script to ease usage pending better solution
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 363 bytes
Line 
1#!/bin/sh
2#
3# Simple script that will display docker repository tags.
4#
5# Usage:
6# $ docker-show-repo-tags.sh ubuntu centos
7for Repo in $* ; do
8 curl -s -S "https://registry.hub.docker.com/v2/repositories/library/$Repo/tags/" | \
9 sed -e 's/,/,\n/g' -e 's/\[/\[\n/g' | \
10 grep '"name"' | \
11 awk -F\" '{print $4;}' | \
12 sort -fu | \
13 sed -e "s/^/${Repo}:/"
14done
Note: See TracBrowser for help on using the repository browser.