How to create crontab file for user elastic search which is installed in user root

  1. how to install crontabs on user elasticsearch ?

  2. how to add crontab jobs for user elastic search where crontabs is installed in user root?

whole process is being done in docker file

You opened a similar question with How to create a crontab file for user elasticsearch. Let's keep the discussion in a single place. Thanks.