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

Automate authentication / login to Docker Hub via hub-tool #720

Open
misha-ritual opened this issue Sep 23, 2024 · 0 comments
Open

Automate authentication / login to Docker Hub via hub-tool #720

misha-ritual opened this issue Sep 23, 2024 · 0 comments
Assignees
Labels
community_new New idea raised by a community contributor

Comments

@misha-ritual
Copy link

Tell us about your request
I'd like to automate login / authentication to Docker Hub with hub-tool. Currently I need to manually enter the password which prevents me from running an automated workflow in GitHub Actions that uses hub-tool.

Which service(s) is this request for?
hub-tool

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?

I'm trying to run hub-tool in GitHub Actions as an automated process to delete some Docker images from Docker Hub. However, I can't automate the login process. I can pass my username to the login command but not the password:

./hub-tool login misharitual

It still prompts me for a password that I have to manually enter. Is there a way to automate the authentication so I can pass the username and password without being prompted?

Are you currently working around the issue?
I'm trying to use automation libraries like expect to inject the password into hub-tool so it can automate the login but it's not working.

Additional context

@misha-ritual misha-ritual added the community_new New idea raised by a community contributor label Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community_new New idea raised by a community contributor
Projects
None yet
Development

No branches or pull requests

2 participants