whats-up-docker
whats-up-docker copied to clipboard
Help with Docker Hub authentification
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!
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}
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
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!
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.
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.