-
Notifications
You must be signed in to change notification settings - Fork 546
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
How to access docker hub using remote package ? #1003
Comments
Do you have any clue ? Thanks in advance |
okay I found this: https://stackoverflow.com/questions/37082826/insufficient-scope-when-attempting-to-get-docker-hub-catalog
so apparently go-containerregistry doesn't work with docker hub. also looks like following calls are doing what Is there any sane way for working with docker hub from go code ? |
I think this is a bit of an overstatement. There are some things that Docker Hub intentionally doesn't support, like catalog and image deletion, which is more of an issue with Docker Hub (and the registry API) than go-containerregistry :P There is I've been attempting to rally support for a standard listing API over in distribution-spec, but as it stands there isn't really a good way to list everything in a repository :/ |
@jonjohnsonjr sorry I was not specific enough but yes, what I mean was to go-containerregistry doesn't work with docker hub because of docker hub's strange api limitations. I will try couple of workarounds and I will update this issue in case any of them solves the problem. thanks for the quick reply |
the best solution I could come up was to deploy registry as pull through cache for docker hub and use its endpoint from go code. one thing is, since it is cache |
Thanks, really appreciate it ❤️ |
Hello,
I am using following go code to access container registries: https://play.golang.org/p/4lsp5gBiVzA
It works perfectly for ECR and GCR once I have proper entries for them in my
~/.docker/config.json
. I've been trying to make the same thing work with docker hub but I always getUNAUTHORIZED
error:I have proper configurations for both
index.docker.io
andregistry-1.docker.io
in my config. when I try to pull a private image for example withdocker pull
it works fine, but when I try to list images/repos with remote package it fails with the error above. Contents of~/.docker/config.json
:docker config is created with following commands:
Is there something I am doing wrong ?
The text was updated successfully, but these errors were encountered: