Skip to content
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

Support usage against registries that dont require authentication #761

Open
solong2017 opened this issue Mar 21, 2022 · 6 comments
Open
Labels
enhancement New feature or request

Comments

@solong2017
Copy link

Hi, I want use this plugin for my private dockerhub, when I config this plugin in gocd, I cannot save the configuration without username & password because of I haven't config it in my private dockerhub.
So is it the only way that config auth in my dockerhub to use this plugin?

@chadlwilson
Copy link
Member

chadlwilson commented Mar 21, 2022

If your question is whether you need to configure authentication details to access a private docker hub registry, then the answer is yes. You would normally generate a personal access token on Docker hub (with only the necessary access) to use as the 'password'.

@solong2017
Copy link
Author

No, my private docker hub no need to auth when to access, so I can access it without account & password. So I mean that how to use this plugin in this scene, or is there any way to use the plugin without auth? thank you.

@chadlwilson
Copy link
Member

If you don't need to auth, then it's not private. Private implies authentication and authorization is required for access. What am I missing?

Perhaps you did a docker login some time earlier in which case docker is caching your credentials somewhere?

@solong2017
Copy link
Author

oh, I think we have a misunderstand here, I think that is my fault, my private docker hub means I build on my local server, not the remote server, use docker pull & run registry, it is not need to auth by default.

@chadlwilson
Copy link
Member

Oh okay, since you mentioned Docker Hub I thought you meant the cloud based one since that's its name :)

Currently the credentials are mandatory as for most purposes one would need to authenticate.

I'd suggest you add auth to your local test registry in the meantime?

@solong2017
Copy link
Author

Ok, I thought there are some releases can support my scene, or maybe I haven't found the right way to use it in this scene, anyway I will add follow your suggestion, thank you.

@chadlwilson chadlwilson changed the title no auth Support usage against registries that dont require authentication May 5, 2023
@chadlwilson chadlwilson added the enhancement New feature or request label May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants