Connect to On premise Oracle database from Docker Container

I will guess, but I think the use of “on-premise” is what causes the misunderstanding. Since we are talking about containers and on-premise and not cloud and on-premise, I guess the real goal is to connect the Oracle database running on the host machine without being in a container.

If I am right and this is the case, I would search for “localhost” on the forum (top right corner) because this is a very frequent question. This is one of the relevant topics: