# Looks like Huggingface will kill specific Docker command when create space

**URL:** <https://discuss.huggingface.co/t/looks-like-huggingface-will-kill-specific-docker-command-when-create-space/89805>\
**Category:** Spaces\
**Created:** [June 1, 2024, 9:06pm UTC](https://discuss.huggingface.co/t/looks-like-huggingface-will-kill-specific-docker-command-when-create-space/89805 "2024-06-01T21:06:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mon-ius](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@Mon-ius](https://discuss.huggingface.co/u/Mon-ius)\
**Post date:** [June 1, 2024, 9:06pm UTC](https://discuss.huggingface.co/t/looks-like-huggingface-will-kill-specific-docker-command-when-create-space/89805/1 "2024-06-01T21:06:49Z")

</div>

It worked perfect before, and I think there is a bug or on purpose thing which in the way of it;

```Dockerfile

FROM monius/docker-ai-infra

USER infra

RUN /usr/bin/mamba run pip install --no-cache-dir huggingface_hub[hf_transfer] pyarrow --quiet

COPY --chown=infra . /opt/run/

CMD ["ai-infra"]

```

---

<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:01am UTC](https://discuss.huggingface.co/t/looks-like-huggingface-will-kill-specific-docker-command-when-create-space/89805/2 "2024-06-04T01:01:23Z")

</div>

hi @Mon-ius could you please share a bit more? did your Space run out of memory?

---

<div class="post-metadata">

**Author:** ![Mon-ius](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@Mon-ius](https://discuss.huggingface.co/u/Mon-ius)\
**Post date:** [June 4, 2024, 2:12am UTC](https://discuss.huggingface.co/t/looks-like-huggingface-will-kill-specific-docker-command-when-create-space/89805/3 "2024-06-04T02:12:49Z")

</div>

no, it’s not run out of mem, I think hf adjust the space policy months ago. Thus as a none-root user cannot perform some ops directly on the Dockerfile.

I debugs hours and figured it out, now I fix it in myside
