Skip to content

stqp/docker-list-tag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Listing Docker Image Tag

List up docker image tags from docker-hub API.

Abstract

You can search docker image tag by using below command.

  $ curl https://registry.hub.docker.com//repositories/<image-name>/tags

But response is JSON and it it not easy to parse JSON by one-liner in CLI.

So, I wrote a trivial script by Go lang.

(I hope this function implemented to original docker command.)

Usage

First, download source code.

  $ git clone https://github.com/stqp/docker-list-tag.git

Build and install.

  $ go build
  $ go install

Then, you can use.

  $ docker-list-tag centos

Prerequisite

You need $GOPATH. If you have not set yet, see SettingGOPATH.

Edit ~/.bashrc like this.

  export GOPATH=$HOME/go
  export GOBIN=$HOME/go/bin
  export PATH="$GOBIN:$PATH"

Then reload.

  $ source ~/.bashrc

About

Listing docker image tags from dokcer-hub

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages