# Supported Environment Variables in docker image

**URL:** <https://forums.percona.com/t/supported-environment-variables-in-docker-image/11495>\
**Category:** Percona Server for MongoDB\
**Created:** [July 24, 2021, 6:26am UTC](https://forums.percona.com/t/supported-environment-variables-in-docker-image/11495 "2021-07-24T06:26:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![favas](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@favas](https://forums.percona.com/u/favas)\
**Post date:** [July 24, 2021, 6:26am UTC](https://forums.percona.com/t/supported-environment-variables-in-docker-image/11495/1 "2021-07-24T06:26:07Z")

</div>

Hi we are trying to use percona docker images in our stack . We liked the implementation of percona mysql docker image and are quite happy with its integration. But when trying to use mongo we see no environment variables in the docker hub pages . sifting through the docker entry.sh file we see these in code .  
MONGO\_INITDB\_ROOT\_USERNAME  
MONGO\_INITDB\_ROOT\_PASSWORD  
MONGO\_INITDB\_DATABASE

but when printenv inside the container gives this  
K8S\_TOOLS\_VERSION=0.5.0  
HOSTNAME=2d0a6394e430  
PWD=/  
HOME=/home/mongodb  
GOSU\_VERSION=1.11  
PSMDB\_VERSION=4.4.6-8  
FULL\_PERCONA\_VERSION=4.4.6-8.el8  
TERM=xterm  
SHLVL=1  
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin  
OS\_VER=el8  
\_=/usr/bin/printenv

how can we use the environment variables like the percona mysql docker image for percona mongo db ? also what are the supported environment variables we can use . that part is missing in docker hub documentation

---

<div class="post-metadata">

**Author:** ![Evgeniy\_Patlan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/evgeniy_patlan/32/41_2.png) [@Evgeniy\_Patlan](https://forums.percona.com/u/Evgeniy_Patlan)\
**Post date:** [August 16, 2021, 5:47am UTC](https://forums.percona.com/t/supported-environment-variables-in-docker-image/11495/2 "2021-08-16T05:47:23Z")

</div>

Here you can find info about our mongo docker: [percona-docker/percona-server-mongodb-4.4 at main · percona/percona-docker · GitHub](https://github.com/percona/percona-docker/tree/main/percona-server-mongodb-4.4)
