# Docker and 5.0.2

**URL:** <https://community.open-emr.org/t/docker-and-5-0-2/13198>\
**Category:** OpenEMR Development\
**Created:** [November 23, 2019, 6:15pm UTC](https://community.open-emr.org/t/docker-and-5-0-2/13198 "2019-11-23T18:15:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhillison](https://community.open-emr.org/letter_avatar_proxy/v4/letter/d/3ab097/32.png) [@dhillison](https://community.open-emr.org/u/dhillison)\
**Post date:** [November 23, 2019, 6:15pm UTC](https://community.open-emr.org/t/docker-and-5-0-2/13198/1 "2019-11-23T18:15:02Z")

</div>

If I clone rel-502 and run with the docker-compose.yml, the container never finishes installation, failing with the text at the bottom of this post. When I use the docker-compose.yml in the current devops version, it fails a few times while mysql is loading then completes. Is there some difference between the docker image of 5.0.2 used by devops ([openemr-devops/docker/openemr/5.0.2 at master · openemr/openemr-devops · GitHub](https://github.com/openemr/openemr-devops/tree/master/docker/openemr/5.0.2)) and the resulting image made directly from 5.0.2? Is there something incorrect in the docker-compose.yml file coming with 5.0.2?

PHP Fatal error: Uncaught Error: Class ‘OpenEMR\Common\Utils\RandomGenUtils’ not found in /var/www/localhost/htdocs/openemr/library/authentication/password\_hashing.php:53  
Stack trace:  
#0 /var/www/localhost/htdocs/openemr/library/classes/Installer.class.php(360): oemr\_password\_salt()  
#1 /var/www/localhost/htdocs/openemr/library/classes/Installer.class.php(633): Installer-\>add\_initial\_user()  
#2 /var/www/localhost/htdocs/auto\_configure.php(42): Installer-\>quick\_install()  
#3 {main}  
thrown in /var/www/localhost/htdocs/openemr/library/authentication/password\_hashing.php on line 53  
Couldn’t set up. Any of these reasons could be what’s wrong:

- You didn’t spin up a MySQL container or connect your OpenEMR container to a mysql instance
- MySQL is still starting up and wasn’t ready for connection yet
- The Mysql credentials were incorrect

---

<div class="post-metadata">

**Author:** ![brady.miller](https://community.open-emr.org/user_avatar/community.open-emr.org/brady.miller/32/10178_2.png) [@brady.miller](https://community.open-emr.org/u/brady.miller)\
**Post date:** [November 24, 2019, 8:59am UTC](https://community.open-emr.org/t/docker-and-5-0-2/13198/2 "2019-11-24T08:59:18Z")

</div>

Hi Derek,

Can you paste the docker-compose.yml script that you are using.  
It sounds like you are using a flex docker (can confirm that when see the docker-compose.yml); if so, ensure you are using most recent image:  
[OpenEMR flex docker updated](https://community.open-emr.org/t/openemr-flex-docker-updated/12051/11)

-brady

---

<div class="post-metadata">

**Author:** ![dhillison](https://community.open-emr.org/letter_avatar_proxy/v4/letter/d/3ab097/32.png) [@dhillison](https://community.open-emr.org/u/dhillison)\
**Post date:** [November 24, 2019, 6:23pm UTC](https://community.open-emr.org/t/docker-and-5-0-2/13198/3 "2019-11-24T18:23:55Z")

</div>

I just needed to  
docker pull openemr/openemr:flex  
as you suggested. I didn’t practice good image hygiene and most of my local images were way old.

Thank you so much Brady, your leadership and support is very appreciated.

Thanks,  
Derek
