I just opened a docker container on my mac. I noticed some database fields were not correct so I ran the sql_upgrade to get them up to the latest.
OpenEMR Database Upgrade
Processing 5_0_1-to-5_0_2_upgrade.sql …
UPDATE background_services SET require_once=‘/library/MedEx/MedEx_background.php’ WHERE name=‘MedEx’
Skipping section #IfNotTable form_eye_base
UPDATE list_options set notes={form_npi: {numericality: {onlyInteger: true}, NPI: {message:"NPI is not valid"}}} where list_id=page_validation and option_id=addrbook_edit#theform and notes={}
Query Error
ERROR: query failed: UPDATE list_options set notes={form_npi: {numericality: {onlyInteger: true}, NPI: {message:"NPI is not valid"}}} where list_id=page_validation and option_id=addrbook_edit#theform and notes={}
Error: Unknown column ‘page_validation’ in ‘where clause’
/var/www/localhost/htdocs/openemr/library/sql_upgrade_fx.php at 892:sqlStatement
/var/www/localhost/htdocs/openemr/sql_upgrade.php at 91:upgradeFromSqlFile(5_0_1-to-5_0_2_upgrade.sql)
Still at a loss here (does not seem like you are using the docker from the contributing.md isntructions, since the port you are using is not the port that is set up in that docker-compose.yml):