Bug: running docker space with secret locally does not work even when authenticated

I’m following the directions to run my space locally, but I’m receiving the following error. I’m using a write token.

It’s a public space, but I have a secret, so downloading the image is restricted. But even I can’t download it!

docker login registry.hf.space
Authenticating with existing credentials...
Login Succeeded
docker run -it -p 7860:7860 --platform=linux/amd64 \
                                                             -e GH_TOKEN="YOUR_VALUE_HERE" \   
                       registry.hf.space/ejschwartz-idioms-playground:latest
Unable to find image 'registry.hf.space/ejschwartz-idioms-playground:latest' locally
docker: Error response from daemon: failed to resolve reference "registry.hf.space/ejschwartz-idioms-playground:latest": unexpected status from HEAD request to https://registry.hf.space/v2/ejschwartz-idioms-playground/manifests/latest: 401 Unauthorized.
See 'docker run --help'.
1 Like