# Bootstrap.password for first installation with scripting

**URL:** <https://discuss.elastic.co/t/bootstrap-password-for-first-installation-with-scripting/342611>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security\
**Created:** [September 8, 2023, 1:34pm UTC](https://discuss.elastic.co/t/bootstrap-password-for-first-installation-with-scripting/342611 "2023-09-08T13:34:45Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 11, 2023, 1:32pm UTC](https://discuss.elastic.co/t/bootstrap-password-for-first-installation-with-scripting/342611/6 "2023-09-11T13:32:19Z")

</div>

But if you are doing integration tests, I'd highly recommend using docker instead.  
That way, you can start a new container every time and you can easily provide the password you want to use by using `ELASTIC_PASSWORD`.

For example: [How to set elasticsearch user "elastic" password in Dockerfile - #2 by dadoonet](https://discuss.elastic.co/t/how-to-set-elasticsearch-user-elastic-password-in-dockerfile/226206/2)

---

_[View the full topic](https://discuss.elastic.co/t/bootstrap-password-for-first-installation-with-scripting/342611)._
