Not able to connect to Exadata from docker

I am trying to access the external Exadata database from docker configured within VM. I have successfully able to connect to Exadata from VM using python code without docker.

I am trying to connect the exadata within docker container using python code within VM.

What i have achieved as of now.

  1. Created the docker file and added all the oracle client rpms to connect to exadata.
  2. configured $ORACLE_HOME and $LD_LIBRARY_PATH

When i run the docker image after build and try to access the exadata i am getting the following error. cannot open shared object file: No such file or directory

but i am using rpm version 12.2

can anyone help me resolve this?

see oracle - cannot open shared object file. - Stack Overflow

sounds like the library not in the PATH env variable