Publishing java web project couplenot get jdbconnection in doc

  docker, question

The project is (spring+mybatis+oracle)
Docker is installed under the virtual machine, jdbc connected database is installed on another linux physical machine, and the local test can pass, but this error will be reported under the docker environment in the virtual machine. What is the reason?
The error message is as follows:
Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; NestedException is org.Apache.commons.dbcp.sqlsendexception: cannotCreatePollectionFactory (ORA-00604: Recursive SQL Level 1 Error
ORA-01882: Time Zone Not Found
)

Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (The Network Adapter could not establish the connection)

at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)

If the Docker container needs to link other hosts, the runtime needs to use the “–net=host” option to indicate that the container shares the network with the host.

sudo docker run --net=host