whats-up-docker icon indicating copy to clipboard operation
whats-up-docker copied to clipboard

Help with Docker Hub authentification

Open andrewdolphin opened this issue 8 months ago • 4 comments

Apologies for the support request but I just can't get this to work.

Docker Hub appears to have changed a little since the instructions were written and the documentation needs a little correction (WUD_REGISTRY_HUB_PUBLIC_LOGIN says that WUD_REGISTRY_HUB_PUBLIC_TOKEN must be given but WUD_REGISTRY_HUB_PUBLIC_TOKEN is deprecated) but I think I'm doing everything right.

I have my personal access token derived from the Hub account settings, I have tried all different options for "scope", not sure which one it should be.

I have set WUD_REGISTRY_HUB_PUBLIC_LOGIN to my login username I have set WUD_REGISTRY_HUB_PUBLIC_PASSWORD to my api key

Docker logs for WUD always show an error of "Some registries failed to register (Error when registering component hub ("public" is not allowed))"

Using the same method Portainer works to login to Docker Hub.

Using latest WUD via Docker compose.

Help please!

andrewdolphin avatar Mar 17 '25 09:03 andrewdolphin

Did you try naming the registry anything else than PUBLIC?

I'm using it like this and it's working perfectly fine:

    environment:
      WUD_REGISTRY_HUB_dockerhub_LOGIN: ${DOCKER_HUB_LOGIN}
      WUD_REGISTRY_HUB_dockerhub_PASSWORD: ${DOCKER_HUB_TOKEN}

proud-nerd avatar Mar 18 '25 22:03 proud-nerd

I had the same issue until I realized that I used an older version of WUD.

Make sure to use image: getwud/wud or image: ghcr.io/getwud/wud

raphpa avatar Mar 19 '25 04:03 raphpa

Did you try naming the registry anything else than PUBLIC?

I'm using it like this and it's working perfectly fine:

    environment:
      WUD_REGISTRY_HUB_dockerhub_LOGIN: ${DOCKER_HUB_LOGIN}
      WUD_REGISTRY_HUB_dockerhub_PASSWORD: ${DOCKER_HUB_TOKEN}

Thank you! That did it!

andrewdolphin avatar Mar 20 '25 00:03 andrewdolphin

In the latest version you can override the default PUBLIC registries, I'm not sure if this was a bug in a previous version, but I just tested it with the latest version and it should be no problem. So please check the version of the wud image (also check the version in the log output) to see if you have the latest. If it's the latest version let us know so we can investigate more.

Tom-V avatar May 04 '25 11:05 Tom-V

I just ran into this issue. I removed "Public" from the environment variable in both lines and that solved the error and authenticated Docker Hub.

thelastblt avatar Oct 05 '25 04:10 thelastblt