Docker Community Forums

Share and learn in the Docker community.

Recommended way to log into docker from automated build server for pushing images

dockerhub

(Voidpointer) #1

From my build server, I want to automate logging into Docker Hub, to push an image to an organization there. Is there a service account or single-use application credentials that can be used on the build server for this purpose? I want to avoid storing my personal username & password on the build server if possible.


(Stefantrimborn) #2

I can only speak for Jenkins right now, but I believe TC or GitLab (or whatever ;-)) are able to provide credentials. You can save your credentials encrypted and call them in your build pipeline. That would avoid putting sensitive data in clear text into your pipeline.

You can also check this for more info (for Jenkins):
https://jenkins.io/doc/book/using/using-credentials/


(Voidpointer) #3

I know how to store the credentials. I am asking for credentials not specific to a user for server use only. I’m not sure if such a thing exists.