# How to Change Admin Password in Docker-Run OpenSearch v2.12.0?

**URL:** <https://forum.opensearch.org/t/how-to-change-admin-password-in-docker-run-opensearch-v2-12-0/18032>\
**Category:** Security\
**Tags:** install\
**Created:** [February 22, 2024, 6:25pm UTC](https://forum.opensearch.org/t/how-to-change-admin-password-in-docker-run-opensearch-v2-12-0/18032 "2024-02-22T18:25:25Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Mantas](https://avatars.discourse-cdn.com/v4/letter/m/7bcc69/32.png) [@Mantas](https://forum.opensearch.org/u/Mantas)\
**Post date:** [February 23, 2024, 10:35am UTC](https://forum.opensearch.org/t/how-to-change-admin-password-in-docker-run-opensearch-v2-12-0/18032/2 "2024-02-23T10:35:56Z")

</div>

Hi @sasan,  
you can connect to your docker using `docker exec -it -u 0 <ContainerName> bash` or use your Docker `Exec`.

After that you can change your passwords in `internal_users.yml` please see here: [YAML files - OpenSearch documentation](https://opensearch.org/docs/1.2/security-plugin/configuration/yaml/#internal_usersyml)

To apply changes see here: [Apply changes with securityadmin.sh - OpenSearch documentation](https://opensearch.org/docs/1.2/security-plugin/configuration/security-admin/)

NOTE: make sure to backup your config files before and after applying changes as all changes will be overridden according to the config files.

Best,  
mj

---

_[View the full topic](https://forum.opensearch.org/t/how-to-change-admin-password-in-docker-run-opensearch-v2-12-0/18032)._
