# Custom rally docker image

**URL:** <https://discuss.elastic.co/t/custom-rally-docker-image/296874>\
**Category:** Elasticsearch\
**Tags:** docker, rally\
**Created:** [February 10, 2022, 4:28pm UTC](https://discuss.elastic.co/t/custom-rally-docker-image/296874 "2022-02-10T16:28:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![amitsa](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@amitsa](https://discuss.elastic.co/u/amitsa)\
**Post date:** [February 10, 2022, 4:28pm UTC](https://discuss.elastic.co/t/custom-rally-docker-image/296874/1 "2022-02-10T16:28:34Z")

</div>

Hi,

I am extending rally docker image. getting permission denied issue.  
for COPY or RUN

eg

RUN mkfifo /logs ---\> permission denied. I am new to esrally kindly help

---

<div class="post-metadata">

**Author:** ![RickBoyd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rickboyd/32/80022_2.png) [@RickBoyd](https://discuss.elastic.co/u/RickBoyd)\
**Post date:** [February 10, 2022, 5:35pm UTC](https://discuss.elastic.co/t/custom-rally-docker-image/296874/2 "2022-02-10T17:35:26Z")

</div>

Hello! Thanks for using Rally 🙂

You may want to see our release Dockerfile ([here](https://github.com/elastic/rally/blob/master/docker/Dockerfiles/Dockerfile-release)). You can see there we use the USER directive to set the USER to `1000` (rally user) at the end of the file. If you're extending the image you may need to use an initial `USER root` directive to get through permissions issues, then go back with a `USER 1000`. Note also (as you can see in the Dockerfile) that COPY might require `--chown=1000:0` argument if you need the `rally` user to have access.

Note that what you're asking isn't really an esrally issue per se, our ability to help further might be limited

Thanks  
Rick B

---

<div class="post-metadata">

**Author:** ![amitsa](https://avatars.discourse-cdn.com/v4/letter/a/dbc845/32.png) [@amitsa](https://discuss.elastic.co/u/amitsa)\
**Post date:** [February 11, 2022, 8:07am UTC](https://discuss.elastic.co/t/custom-rally-docker-image/296874/3 "2022-02-11T08:07:57Z")

</div>

Thankyou RickByod for the reference.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 11, 2022, 8:08am UTC](https://discuss.elastic.co/t/custom-rally-docker-image/296874/4 "2022-03-11T08:08:31Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
