# Github Actions falied for space with docker sdk

**URL:** <https://discuss.huggingface.co/t/github-actions-falied-for-space-with-docker-sdk/90094>\
**Category:** Spaces\
**Created:** [June 3, 2024, 2:35pm UTC](https://discuss.huggingface.co/t/github-actions-falied-for-space-with-docker-sdk/90094 "2024-06-03T14:35:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamgianna](https://avatars.discourse-cdn.com/v4/letter/i/7bcc69/32.png) [@iamgianna](https://discuss.huggingface.co/u/iamgianna)\
**Post date:** [June 3, 2024, 2:35pm UTC](https://discuss.huggingface.co/t/github-actions-falied-for-space-with-docker-sdk/90094/1 "2024-06-03T14:35:23Z")

</div>

Hi there, I tried to manage my space using github actions so i followed the github actions doc in huggingface doc and when i tried to execute the workflow it showed error. I literally did everything huggingface team wrote in the doc still it failed. can anybody help?

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](https://discuss.huggingface.co/u/radames)\
**Post date:** [June 4, 2024, 1:00am UTC](https://discuss.huggingface.co/t/github-actions-falied-for-space-with-docker-sdk/90094/2 "2024-06-04T01:00:03Z")

</div>

hi @iamgianna ,

Can you share a bit more? Could you read the GH action logs?

One suggestion, this is on recent Space I’ve worked on, it uses a special [GH Workflow](https://github.com/JacobLinCool/huggingface-sync) which I recommend

Feel free to use it as a template

> <https://github.com/radames/ai-town-huggingface/blob/main/.github/workflows/hf-sync.yml>

Don’t forget

> <https://github.com/radames/ai-town-huggingface/blob/main/README.md.yml>

And add you `HF_TOKEN` under you repo  
`https://github.com/USER/REPO/settings/secrets/actions/`

---

<div class="post-metadata">

**Author:** ![janebrown](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@janebrown](https://discuss.huggingface.co/u/janebrown)\
**Post date:** [June 5, 2024, 9:48pm UTC](https://discuss.huggingface.co/t/github-actions-falied-for-space-with-docker-sdk/90094/3 "2024-06-05T21:48:38Z")

</div>

Hey @radames

I am woking on a search engine project and I wanna integrate Redis’s in memory database to my project. I tried deploying Redis using the Docker sdk so I used this following Dockerfile and it failed showed- “Failed to write PID file: Permission denied” you can check the files and logs also I disabled the snapshotting.

FROM redis  
COPY redis.conf /usr/local/etc/redis/redis.conf  
CMD [“redis-server”, “/usr/local/etc/redis/redis.conf”]

> **[Redis - a Hugging Face Space by janebrown](https://huggingface.co/spaces/janebrown/Redis)**
>
> Discover amazing ML apps made by the community
