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

**URL:** <https://discuss.huggingface.co/t/bug-running-docker-space-with-secret-locally-does-not-work-even-when-authenticated/139873>\
**Category:** Spaces\
**Created:** [February 9, 2025, 3:43pm UTC](https://discuss.huggingface.co/t/bug-running-docker-space-with-secret-locally-does-not-work-even-when-authenticated/139873 "2025-02-09T15:43:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ejschwartz](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/ejschwartz/32/16902_2.png) [@ejschwartz](https://discuss.huggingface.co/u/ejschwartz)\
**Post date:** [February 9, 2025, 3:43pm UTC](https://discuss.huggingface.co/t/bug-running-docker-space-with-secret-locally-does-not-work-even-when-authenticated/139873/1 "2025-02-09T15:43:17Z")

</div>

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!

```auto
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'.

```
