New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal: allow to list tags/IDs of remote image #14254
Comments
A friendly bump, this would be nice to see implemented in docker soon |
@steelbrain Any updates on this? |
@andyxning Not that I am aware of :( |
Does anyone know a work around? As part of a CI/CD script, I'm trying to avoid building an image if it's already in my AWS ECR repository. I'm using the git short version to tag images. |
Would really like to see this as well. Work around for us has been to use the Docker Hub API. For example, doing a GET on |
I ended up writing this script (for AWS ECR) as a work around: https://gist.github.com/36a7e8b70769fb87c0d037ff01fb4e91 |
Here's a variant of the script that checks ECR using the AWS CLI: https://gist.github.com/outofcoffee/8f40732aefacfded14cce8a45f6e5eb1 |
There's also skopeo: https://github.com/projectatomic/skopeo#inspecting-a-repository |
Oneliner for CI/CD in my GCP/GCR env:
It returns digest or empty data to stdout for image "eu.gcr.io/ci-test-env/system-nginx-ci-lb:master" Or, we can return count of images with tag. 0 will mean not found:
|
any update? |
Please update this. There is so much copypasta garbage out there about checking the URL response from the API using bash. Make this is a native feature! |
still waiting |
related docker/roadmap#117 |
As a Docker user, I'd like to be able to list tags and Image IDs of remote images without downloading binary blobs.
Possible interface
Add
-l
flag todocker tag
denoting list tags. If given name matches local image, its tags will be listed. Otherwise a remote registry will be listed.Example:
The text was updated successfully, but these errors were encountered: