-
Notifications
You must be signed in to change notification settings - Fork 644
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
Change 'hasImage()' to use inspect instead of list #230
Comments
lol - i just saw this. looks like |
Yeah, but Seems that they not really picked that up, also it could be that However, I removed some stuff (as always ;-) and made |
Sorry for being such a jackass, but hopefully you find it also a bit more straight forward. I don't mind to introduce new abstractions like argument or model objects, but only if the complexity is high enough. I still have the feeling that most of the time an image id (string) is enough, so I removed |
no worries, your project :) the the |
update to docker-client:4.0.8
The problem is that
GET /images/json?filter=
is not documented and probably not officially supported. Also it has a bug: When you filter with a name containing one of the default registriesindex.docker.io
anddocker.io
you won't match images without a registry prefix, make this call quite asymmetrically.(the current solution is to try every known public registry name)
AFAIS a
GET /images/(name)/json
doesn't suffer this problem. ForhasImage()
one could simply check for the status code 202 and/or 404.@jgangemi what do you think ?
The text was updated successfully, but these errors were encountered: