I have oracle client installed container that was downloaded from docker hub and trying to connect remote oracle database from this container but getting connect time out
ERROR: ORA-12170: TNS:Connect timeout occurred
Using below sqlplus command to connect.
/usr/lib/oracle/12.2/client64/bin/sqlplus u/p@<hostname>:1521/<SID>
Have you checked that needed ports are opened. When this (timeouts) has happened to me it has been related with hostname or with needed ports that are closed. Please check incoming and outgoing ports opened in your firewall