Last change
on this file since 2689 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
|
Rev | Line | |
---|
[2124] | 1 | #!/bin/sh
|
---|
| 2 | #
|
---|
| 3 | # Simple script that will display docker repository tags.
|
---|
| 4 | #
|
---|
| 5 | # Usage:
|
---|
| 6 | # $ docker-show-repo-tags.sh ubuntu centos
|
---|
| 7 | for 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}:/"
|
---|
| 14 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.