# Howto add crontab jobs to elasticsearch docker container?

**URL:** <https://discuss.elastic.co/t/howto-add-crontab-jobs-to-elasticsearch-docker-container/80531>\
**Category:** Elasticsearch\
**Created:** [March 29, 2017, 6:25pm UTC](https://discuss.elastic.co/t/howto-add-crontab-jobs-to-elasticsearch-docker-container/80531 "2017-03-29T18:25:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mathias/32/23176_2.png) [@mathias](https://discuss.elastic.co/u/mathias)\
**Post date:** [March 29, 2017, 6:25pm UTC](https://discuss.elastic.co/t/howto-add-crontab-jobs-to-elasticsearch-docker-container/80531/1 "2017-03-29T18:25:55Z")

</div>

Hi,

I am trying ES 5.3.0 docker container and wonder how I can add a crontab jobs to the container?

docker exec -it elasticsearch bash  
bash-4.3$ id  
uid=1000(elasticsearch) gid=1000(elasticsearch)  
bash-4.3$ crontab -l  
crontab: must be suid to work properly

It is not allowed to start the container as root.

Br Mathias

---

<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:** [April 26, 2017, 6:25pm UTC](https://discuss.elastic.co/t/howto-add-crontab-jobs-to-elasticsearch-docker-container/80531/2 "2017-04-26T18:25:59Z")

</div>

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