# Creating custom tracks in Rally with Docker image

**URL:** <https://discuss.elastic.co/t/creating-custom-tracks-in-rally-with-docker-image/234515>\
**Category:** Elasticsearch\
**Tags:** rally\
**Created:** [May 27, 2020, 10:07am UTC](https://discuss.elastic.co/t/creating-custom-tracks-in-rally-with-docker-image/234515 "2020-05-27T10:07:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkhere](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jkhere/32/73292_2.png) [@jkhere](https://discuss.elastic.co/u/jkhere)\
**Post date:** [May 27, 2020, 10:07am UTC](https://discuss.elastic.co/t/creating-custom-tracks-in-rally-with-docker-image/234515/1 "2020-05-27T10:07:15Z")

</div>

I am trying to create a custom track from an existing index using the [instructions](https://esrally.readthedocs.io/en/stable/adding_tracks.html#creating-a-track-from-data-in-an-existing-cluster) in the Rally documentation page.

I am running Rally as a Docker Image. Following is the commad that I used to create the track

`docker run --network=super-net elastic/rally esrally create-track --track=superhit --target-hosts=super-n0:9200 --indices="superindex" --output-path=~/tracks`

Error message :  
`esrally: error: argument subcommand: invalid choice: 'create-track' (choose from 'race', 'list', 'info', 'generate', 'compare', 'configure', 'download', 'install', 'start', 'stop')`

Does it mean that I cannot create custom tracks if Rally is run from docker image ?

---

<div class="post-metadata">

**Author:** ![dliappis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dliappis/32/56174_2.png) [@dliappis](https://discuss.elastic.co/u/dliappis)\
**Post date:** [May 27, 2020, 11:25am UTC](https://discuss.elastic.co/t/creating-custom-tracks-in-rally-with-docker-image/234515/2 "2020-05-27T11:25:34Z")

</div>

Are you using the latest Docker image? What does `docker images elastic/rally:latest` report?

Here are the latest tags: [https://hub.docker.com/r/elastic/rally/tags](https://hub.docker.com/r/elastic/rally/tags)

---

<div class="post-metadata">

**Author:** ![jkhere](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jkhere/32/73292_2.png) [@jkhere](https://discuss.elastic.co/u/jkhere)\
**Post date:** [May 27, 2020, 12:49pm UTC](https://discuss.elastic.co/t/creating-custom-tracks-in-rally-with-docker-image/234515/3 "2020-05-27T12:49:18Z")

</div>

This was the output.  
REPOSITORY TAG IMAGE ID CREATED SIZE  
elastic/rally latest 44485af7bc75 3 months ago 418MB

I pulled the latest image from docker and now it started working. Why was it not working earlier ?

---

<div class="post-metadata">

**Author:** ![dliappis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dliappis/32/56174_2.png) [@dliappis](https://discuss.elastic.co/u/dliappis)\
**Post date:** [May 27, 2020, 1:53pm UTC](https://discuss.elastic.co/t/creating-custom-tracks-in-rally-with-docker-image/234515/4 "2020-05-27T13:53:11Z")

</div>

Probably you were using an older version of Rally and didn't pull the latest.

> elastic/rally latest 44485af7bc75 3 months ago 418MB

Current latest is:

> elastic/rally latest 883142ad883b 2 weeks ago 485MB

The `create-track` subcommand has been introduced in Rally 2.0.0: [Rally 2.0.0 released](https://discuss.elastic.co/t/rally-2-0-0-released/231477)

---

<div class="post-metadata">

**Author:** ![jkhere](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jkhere/32/73292_2.png) [@jkhere](https://discuss.elastic.co/u/jkhere)\
**Post date:** [May 27, 2020, 2:57pm UTC](https://discuss.elastic.co/t/creating-custom-tracks-in-rally-with-docker-image/234515/5 "2020-05-27T14:57:32Z")

</div>

Got it. Thank you for the help.

---

<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:** [June 24, 2020, 2:57pm UTC](https://discuss.elastic.co/t/creating-custom-tracks-in-rally-with-docker-image/234515/6 "2020-06-24T14:57:32Z")

</div>

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