My guess is that you have a local config in your ./wp folder which you mounted into the container and overwrote the db.php which sets the DB_DRIVER variable.to be psql.
Share and learn in the Docker community.
My guess is that you have a local config in your ./wp folder which you mounted into the container and overwrote the db.php which sets the DB_DRIVER variable.to be psql.