huggingface / hub-docs

Docs of the Hugging Face Hub
http://hf.co/docs/hub
Apache License 2.0
255 stars 222 forks source link

Can't run HF space on docker #1317

Closed dskill closed 1 month ago

dskill commented 1 month ago

I'm trying to follow the instructions to run a gradio space i deployed on HF, locally via docker.

I can successfully authenticate with docker login registry.hf.space

Authenticating with existing credentials...
Login Succeeded

but when i run the next docker cmd from the HF spaces web UI:

    -e HF_TOKEN="YOUR_VALUE_HERE" \
    registry.hf.space/dskill-sd-audio:latest python app.py

(with my HF_TOKEN substituted)

I get

Unable to find image 'registry.hf.space/dskill-sd-audio:latest' locally
docker: Error response from daemon: unauthorized: authentication required.
See 'docker run --help'.

Any help much appreciated. I'm new to docker. thx.

coyotte508 commented 1 month ago

Hi, try docker logout registry.hf.space. Then login again but make sure to use your HF token as the password

dskill commented 1 month ago

ohhhh thank you. I saw another comment about needing to log in with your HF token and not your password (both work).

But I failed to properly logout and so when I tried that fix it didn't work. Thanks for the help this time I logged out properly and was able to log back in with my HF Token, and now I'm able to pull the image.

On Fri, Jun 28, 2024 at 1:07 AM Eliott C. @.***> wrote:

Hi, try docker logout registry.hf.space. Then login again but make sure to use your HF token as the password

— Reply to this email directly, view it on GitHub https://github.com/huggingface/hub-docs/issues/1317#issuecomment-2196362308, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFLVAX44XGDTJL2IZMARZDZJUKEVAVCNFSM6AAAAABKBHXOG6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJWGM3DEMZQHA . You are receiving this because you authored the thread.Message ID: @.***>