https://github.com/koki-develop/docker-tags
🐳 Command line tool to get a list of tags for docker images.
https://github.com/koki-develop/docker-tags
cli docker golang
Last synced: about 1 year ago
JSON representation
🐳 Command line tool to get a list of tags for docker images.
- Host: GitHub
- URL: https://github.com/koki-develop/docker-tags
- Owner: koki-develop
- License: mit
- Created: 2023-01-16T09:45:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-13T20:17:01.000Z (about 2 years ago)
- Last Synced: 2024-04-14T10:51:46.549Z (about 2 years ago)
- Topics: cli, docker, golang
- Language: Go
- Homepage:
- Size: 154 KB
- Stars: 12
- Watchers: 2
- Forks: 1
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-tags
[](https://github.com/koki-develop/docker-tags/releases/latest)
[](./LICENSE)
[](https://github.com/koki-develop/docker-tags/actions/workflows/ci.yml)
[](https://goreportcard.com/report/github.com/koki-develop/docker-tags)
Command line tool to get a list of tags for docker images.
It can also be used as a docker cli plugin.
# Supported Registry
> [!NOTE]
> For the [Amazon ECR](https://aws.amazon.com/ecr/) and [ECR Public](https://docs.aws.amazon.com/AmazonECR/latest/public/index.html), an AWS Profile must be configured.
> See [documentation](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html) for details.
> [!NOTE]
> For the private [Google Container Registry](https://cloud.google.com/container-registry) and [Google Artifact Registry](https://cloud.google.com/artifact-registry), you must set Google's Application Default Credentials.
> See [documentation](https://cloud.google.com/docs/authentication/application-default-credentials) for details.
- [Docker Hub](https://hub.docker.com/)
- [Amazon ECR](https://aws.amazon.com/ecr/)
- [Amazon ECR Public](https://docs.aws.amazon.com/AmazonECR/latest/public/index.html)
- [Google Container Registry](https://cloud.google.com/container-registry)
- [Google Artifact Registry](https://cloud.google.com/artifact-registry)
# Installation
## Homebrew
```sh
$ brew install koki-develop/tap/docker-tags
```
## go install
```sh
$ go install github.com/koki-develop/docker-tags@latest
```
## Docker CLI Plugin
```sh
$ git clone https://github.com/koki-develop/docker-tags.git
$ cd docker-tags
$ make
$ mkdir -p $HOME/.docker/cli-plugins/
$ mv ./dist/docker-tags $HOME/.docker/cli-plugins/
$ docker tags --help
```
## Release
Download the binary from the [releases page](https://github.com/koki-develop/docker-tags/releases/latest).
# Usage
```sh
Command line tool to get a list of tags for docker images.
Usage:
docker-tags [IMAGE] [flags]
Flags:
--aws-profile string aws profile
-h, --help help for docker-tags
-o, --output string output format (text|json) (default "text")
-v, --version version for docker-tags
-n, --with-name print with image name
```
```sh
$ docker-tags alpine
latest
edge
3.9.6
3.9.5
...
```
```sh
# json format
$ docker-tags alpine -o json
[
"latest",
"edge",
"3.9.6",
"3.9.5",
...
]
```
# LICENSE
[LICENSE](./LICENSE)