Skip to content

Instantly share code, notes, and snippets.

@tripu tripu/docker-tags.sh
Created Mar 22, 2019

Embed
What would you like to do?
List or filter all tags for a given Docker image
#!/bin/sh
# All tags of Docker image "circleci/node" (raw JSON):
curl https://registry.hub.docker.com/v1/repositories/circleci/node/tags
# All images and their tags from CircleCI's own Docker registry (raw JSON):
curl https://circleci.com/docs/2.0/docker-image-tags.json
# All tags of Docker image "circleci/node", formatting JSON output:
curl https://registry.hub.docker.com/v1/repositories/circleci/node/tags | jq .
# All tags of Docker image "circleci/node", formatting JSON output, and filtering by names containing "lts":
curl https://registry.hub.docker.com/v1/repositories/circleci/node/tags | jq '.[] | select(.name | contains("lts"))'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.