Including microsoft sql server in docker

What does phpinfo() shows you? Can you confirm that the driver is loaded? I assume you have read this: Linux and macOS Installation for the Drivers for PHP - PHP drivers for SQL Server | Microsoft Docs

I am pretty sure though, this is not an issue of “including microsoft sql server in docker”. You have to configure PHP properly. Are you sure, you enabled the required modules?