# Change the passwords in docker image

**URL:** <https://datashield.discourse.group/t/change-the-passwords-in-docker-image/609>\
**Category:** Beginner Support\
**Created:** [26 August 2022 13:28 UTC](https://datashield.discourse.group/t/change-the-passwords-in-docker-image/609 "2022-08-26T13:28:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wilmar.igl](https://avatars.discourse-cdn.com/v4/letter/w/7993a0/32.png) [@wilmar.igl](https://datashield.discourse.group/u/wilmar.igl)\
**Post date:** [26 August 2022 13:28 UTC](https://datashield.discourse.group/t/change-the-passwords-in-docker-image/609/1 "2022-08-26T13:28:08Z")

</div>

Hi,

I am running DataShield in Docker now. How do I change the default passwords as defined in the docker image [1] (while the container is up an running)?

Best, Wilmar

[1] [Installation — Opal documentation](https://opaldoc.obiba.org/en/latest/admin/installation.html#docker-image-installation)

---

<div class="post-metadata">

**Author:** ![swheater](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/swheater/32/182_2.png) [@swheater](https://datashield.discourse.group/u/swheater)\
**Post date:** [26 August 2022 14:18 UTC](https://datashield.discourse.group/t/change-the-passwords-in-docker-image/609/2 "2022-08-26T14:18:05Z")

</div>

Wilmar,

In the “docker-compose.yml” file, in the “service / opal” environment section, you can change the value of “OPAL\_ADMINISTRATOR\_PASSWORD” to the password you want.

Does this answer your question?

Stuart

---

<div class="post-metadata">

**Author:** ![yannick](https://yyz2.discourse-cdn.com/free1/user_avatar/datashield.discourse.group/yannick/32/19_2.png) [@yannick](https://datashield.discourse.group/u/yannick)\
**Post date:** [26 August 2022 14:18 UTC](https://datashield.discourse.group/t/change-the-passwords-in-docker-image/609/3 "2022-08-26T14:18:41Z")

</div>

The passwords defined by environment variables in the docker compose file are applied only at first start. If you want to change them afterwards, see [User Directories documentation](https://opaldoc.obiba.org/en/latest/admin/configuration.html#user-directories) for the “administrator” password, or edit “opal-config.properties” for the other default passwords (which ones are you talking about?).

If it is still a fresh install, it may be simpler to just go `down` and then `up` with the docker compose, for a new “first start”.

Yannick

---

<div class="post-metadata">

**Author:** ![wilmar.igl](https://avatars.discourse-cdn.com/v4/letter/w/7993a0/32.png) [@wilmar.igl](https://datashield.discourse.group/u/wilmar.igl)\
**Post date:** [26 August 2022 14:27 UTC](https://datashield.discourse.group/t/change-the-passwords-in-docker-image/609/5 "2022-08-26T14:27:56Z")

</div>

Thanks, yes, I was wondering how to change the passwords while the docker image is up and running. Yannick’s answer is what I needed.
