Connect aws rds using ssh key from docker container

i have problem to access my RDS from my docker container.

i’m trying to connect to amazon web service (RDS) from my docker application container.

i manage to access the RDS using ssh tunnel from my localhost.

but when i try to use localhost ip 127.0.0.1, i’m getting connection refused error.

how do i make my application container to point to my localhost for accessing the RDS?

i’m using laradock for my containers.

thanks

Nevermind. i manage to connect using my docker host it.

ipconfig getifaddr en0

Where did you execute the command ? Inside the container? or in the host?