skip to Main Content

I am one of the owners of a Docker Hub organization. We want to start pushing images built on GitHub to one of our repositories on Docker Hub.

The question: how to authenticate?

Of course, we could store the personal access token of one of the org owners as a GitHub secret but that would be totally weird. However, there doesn’t seem to be an option to create an org token or similar.

3

Answers


  1. Chosen as BEST ANSWER

    Confirmed by Docker support that this is currently not possible. Follow-up request: https://github.com/docker/roadmap/issues/461


  2. Docker has support for security scoped tokens to create limited PATs. Unfortunately, that’s a paid feature. You can follow that and see many other linked issues in roadmap issue #115.

    Login or Signup to reply.
  3. I had the same problem. I couldn’t see my organisation’s repos when authenitcating to GitHub from Docker Hub.

    I went to the Organisation Settings on GitHub to see if authorisation was approved.
    See here and here.

    1. Click on your profile image at the top right hand side of GitHub. Click on "Your Organisations".
    2. Select the Organisation.
    3. Click Settings.
    4. Click OAuth application policy.
    5. Approve Docker Hub Builder.
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search