# How to run elasticsearch-shard in a docker container

**URL:** <https://discuss.elastic.co/t/how-to-run-elasticsearch-shard-in-a-docker-container/303815>\
**Category:** Elasticsearch\
**Tags:** docker, snapshot-and-restore\
**Created:** [May 3, 2022, 10:27am UTC](https://discuss.elastic.co/t/how-to-run-elasticsearch-shard-in-a-docker-container/303815 "2022-05-03T10:27:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elaskibuser](https://avatars.discourse-cdn.com/v4/letter/e/e19b73/32.png) [@elaskibuser](https://discuss.elastic.co/u/elaskibuser)\
**Post date:** [May 3, 2022, 10:27am UTC](https://discuss.elastic.co/t/how-to-run-elasticsearch-shard-in-a-docker-container/303815/1 "2022-05-03T10:27:20Z")

</div>

Through an unfortunate series of events, data was lost on a node on a 3 node cluster.

All that is left a month old copy of a the data folder.

I am not able to run Elasticsearch-shard --remove-corrupted-data because it needs Elasticsearch to be shut down, and when you do so, the docker container restarts.

I cannot install Elasticsearch on the server. Is there a way to go around that.

Or should I just start the node and try my luck this way? I am worried if I run the node, it will affect other nodes as I am still ingesting data to other nodes and I do not want that to be affected.

EDIT: please note that I still did not start that node since the indecent while the other two nodes are running because I am worried what will happen to the cluster when I run that node with this state. I just copied the backup into the folder and I am waiting.

Is it safe to start that node and then shut it down when I want to use the shard tool?

---

<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:** [May 31, 2022, 10:28am UTC](https://discuss.elastic.co/t/how-to-run-elasticsearch-shard-in-a-docker-container/303815/2 "2022-05-31T10:28:16Z")

</div>

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