There is a system that creates a docker container on a VM and connects an Oracle DB from that container.
When it was built with the test environment VM, it was able to connect to the DB, but when it was built in the production environment, the following error message occurred.
If i have a similar error and are aware of the solution, thank you.

Error message
Applicable source code
PDO standard connection method is used.
Although the source code cannot be put on due to various circumstances, I understand that it is necessary to change the setting on the VM side of the host instead of the container side.

I wrote it above, but when I created it in the same way on another VM, no error occurred. Since the configuration file is the same, it seems that there is no problem in connecting to the DB.

Supplemental information (FW/tool version etc.)

Please provide more detailed information here.