dockertags
retrieves and print available Docker image tag list from image repository.
$ go get -d github.com/wantedly/dockertags
$ cd $GOPATH/src/github.com/wantedly/dockertags
$ make
$ make install
$ dockertags
Usage:
dockertags IMAGENAME
Provide Docker image name, then available tags of given image will be shown.
$ dockertags quay.io/wantedly/dockertags
latest
master
$ dockertags mysql/mysql-server
latest
8.0
8.0.0
5.7
5.7.9
...
5.5.42
- Quay.io
- To retrieve tags of private image, pass API access token to
QUAYIO_TOKEN
environement variable.
- To retrieve tags of private image, pass API access token to
- Docker Hub
- To retrieve tags of private image, set
DOCKER_USERNAME
andDOCKER_PASSWORD
for Docker Hub. If they're not set, only tags for public images will be fetched.
- To retrieve tags of private image, set
- Amazon ECR
- To retrieve tags of private image, configure the profile for AWS CLI.
- GCP GCR
- To retrieve tags of private image, configure a proper IAM permissions.